diff options
Diffstat (limited to 'pkgs/desktops/gnome/core/epiphany/default.nix')
-rw-r--r-- | pkgs/desktops/gnome/core/epiphany/default.nix | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/core/epiphany/default.nix b/pkgs/desktops/gnome/core/epiphany/default.nix new file mode 100644 index 0000000000000..f286d384c4e80 --- /dev/null +++ b/pkgs/desktops/gnome/core/epiphany/default.nix @@ -0,0 +1,115 @@ +{ lib, stdenv +, meson +, ninja +, gettext +, fetchurl +, pkg-config +, gtk3 +, glib +, icu +, wrapGAppsHook +, gnome +, libportal +, libxml2 +, libxslt +, itstool +, webkitgtk +, libsoup +, glib-networking +, libsecret +, gnome-desktop +, libnotify +, libarchive +, p11-kit +, sqlite +, gcr +, isocodes +, desktop-file-utils +, python3 +, nettle +, gdk-pixbuf +, gst_all_1 +, json-glib +, libdazzle +, libhandy +, buildPackages +}: + +stdenv.mkDerivation rec { + pname = "epiphany"; + version = "40.1"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; + sha256 = "1l0sb1xg16g4wg3z99xb0w2kbyczbn7q4mphs3w4lxq22xml4sk9"; + }; + + nativeBuildInputs = [ + desktop-file-utils + gettext + itstool + libxslt + meson + ninja + pkg-config + python3 + wrapGAppsHook + buildPackages.glib + buildPackages.gtk3 + ]; + + buildInputs = [ + gcr + gdk-pixbuf + glib + glib-networking + gnome-desktop + gnome.adwaita-icon-theme + gst_all_1.gst-libav + gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good + gst_all_1.gst-plugins-ugly + gst_all_1.gstreamer + gtk3 + icu + isocodes + json-glib + libdazzle + libhandy + libportal + libnotify + libarchive + libsecret + libsoup + libxml2 + nettle + p11-kit + sqlite + webkitgtk + ]; + + # Tests need an X display + mesonFlags = [ + "-Dunit_tests=disabled" + ]; + + postPatch = '' + chmod +x post_install.py # patchShebangs requires executable file + patchShebangs post_install.py + ''; + + passthru = { + updateScript = gnome.updateScript { + packageName = pname; + }; + }; + + meta = with lib; { + homepage = "https://wiki.gnome.org/Apps/Epiphany"; + description = "WebKit based web browser for GNOME"; + maintainers = teams.gnome.members; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +} |