2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl, pkgconfig, gtk, glib, icu
|
|
|
|
, wrapGAppsHook, gnome3, libxml2, libxslt, itstool
|
2018-02-25 02:23:58 +00:00
|
|
|
, webkitgtk, libsoup, glib-networking, libsecret, gnome-desktop, libnotify, p11-kit
|
|
|
|
, sqlite, gcr, isocodes, desktop-file-utils, file
|
|
|
|
, gdk_pixbuf, gnome-common, gst_all_1, json-glib }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
# Tests need an X display
|
2017-10-04 22:50:14 +01:00
|
|
|
mesonFlags = [ "-Dunit_tests=false" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
nativeBuildInputs = [ meson ninja libxslt pkgconfig itstool gettext file wrapGAppsHook desktop-file-utils ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gtk glib webkitgtk libsoup libxml2 libsecret gnome-desktop libnotify
|
|
|
|
sqlite isocodes p11-kit icu gnome3.yelp-tools
|
|
|
|
gdk_pixbuf gnome3.defaultIconTheme gnome-common gcr
|
|
|
|
glib-networking gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
2016-11-26 11:50:15 +00:00
|
|
|
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly
|
2018-02-25 02:23:58 +00:00
|
|
|
gst_all_1.gst-libav json-glib ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Patched meson does not add internal libraries to rpath
|
2017-12-31 10:13:59 +00:00
|
|
|
for f in $out/bin/.*-wrapped $out/libexec/.*-wrapped $out/libexec/epiphany/.*-wrapped $out/lib/epiphany/*.so $out/lib/epiphany/web-extensions/*.so; do
|
|
|
|
patchelf --set-rpath "$out/lib/epiphany:$(patchelf --print-rpath $f)" "$f"
|
2017-10-04 22:50:14 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Epiphany;
|
|
|
|
description = "WebKit based web browser for GNOME";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|