2021-12-17 11:53:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-09-21 03:39:40 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
2021-10-27 02:00:38 +01:00
|
|
|
, fetchpatch
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-09-21 03:39:40 +01:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, icu
|
|
|
|
, wrapGAppsHook
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2021-08-13 14:46:21 +01:00
|
|
|
, pantheon
|
2020-08-21 20:58:07 +01:00
|
|
|
, libportal
|
2019-09-21 03:39:40 +01:00
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, itstool
|
|
|
|
, webkitgtk
|
|
|
|
, libsoup
|
|
|
|
, glib-networking
|
|
|
|
, libsecret
|
|
|
|
, gnome-desktop
|
|
|
|
, libnotify
|
2021-03-21 05:15:45 +00:00
|
|
|
, libarchive
|
2019-09-21 03:39:40 +01:00
|
|
|
, p11-kit
|
|
|
|
, sqlite
|
|
|
|
, gcr
|
|
|
|
, isocodes
|
|
|
|
, desktop-file-utils
|
|
|
|
, python3
|
|
|
|
, nettle
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gst_all_1
|
|
|
|
, json-glib
|
|
|
|
, libdazzle
|
|
|
|
, libhandy
|
2020-02-26 22:11:17 +00:00
|
|
|
, buildPackages
|
2021-08-13 14:46:21 +01:00
|
|
|
, withPantheon ? false
|
2019-09-21 03:39:40 +01:00
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "epiphany";
|
2021-12-21 07:43:44 +00:00
|
|
|
version = "41.3";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 05:15:45 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2021-12-21 07:43:44 +00:00
|
|
|
sha256 = "ugEmjuVPMY39rC4B66OKP8lpQMHL9kDtJhOuKfi8ua0=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-12-17 11:53:13 +00:00
|
|
|
patches = lib.optionals withPantheon [
|
2021-10-27 02:00:38 +01:00
|
|
|
# Pantheon specific patches for epiphany
|
2021-08-13 14:46:21 +01:00
|
|
|
# https://github.com/elementary/browser
|
2021-10-27 02:00:38 +01:00
|
|
|
#
|
|
|
|
# Make this respect dark mode settings from Pantheon
|
|
|
|
# https://github.com/elementary/browser/pull/21
|
|
|
|
# https://github.com/elementary/browser/pull/41
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/dark-style.patch";
|
|
|
|
sha256 = "sha256-RzMUc9P51UN3tRFefzRtMniXR9duOOmLj5eu5gL2TEQ=";
|
|
|
|
})
|
|
|
|
# Patch to unlink nav buttons
|
|
|
|
# https://github.com/elementary/browser/pull/18
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/navigation-buttons.patch";
|
|
|
|
sha256 = "sha256-G1/JUjn/8DyO9sgL/5Kq205KbTOs4EMi4Vf3cJ8FHXU=";
|
|
|
|
})
|
2021-08-13 14:46:21 +01:00
|
|
|
];
|
|
|
|
|
2018-03-22 14:40:21 +00:00
|
|
|
nativeBuildInputs = [
|
2019-09-21 03:39:40 +01:00
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-09-21 03:39:40 +01:00
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
2020-02-26 22:11:17 +00:00
|
|
|
buildPackages.glib
|
2020-02-27 23:00:20 +00:00
|
|
|
buildPackages.gtk3
|
2018-03-22 14:40:21 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 14:40:21 +00:00
|
|
|
buildInputs = [
|
2019-09-21 03:39:40 +01:00
|
|
|
gcr
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gnome-desktop
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.adwaita-icon-theme
|
2019-09-21 03:39:40 +01:00
|
|
|
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
|
2020-08-21 20:58:07 +01:00
|
|
|
libportal
|
2019-09-21 03:39:40 +01:00
|
|
|
libnotify
|
2021-03-21 05:15:45 +00:00
|
|
|
libarchive
|
2019-09-21 03:39:40 +01:00
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
nettle
|
|
|
|
p11-kit
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
2021-10-17 04:41:46 +01:00
|
|
|
] ++ lib.optionals withPantheon [
|
|
|
|
pantheon.granite
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-03-21 05:15:45 +00:00
|
|
|
# Tests need an X display
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dunit_tests=disabled"
|
|
|
|
];
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-03-22 14:40:21 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2019-09-21 03:39:40 +01:00
|
|
|
packageName = pname;
|
2018-03-22 14:40:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Epiphany";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "WebKit based web browser for GNOME";
|
2021-08-13 14:46:21 +01:00
|
|
|
maintainers = teams.gnome.members ++ teams.pantheon.members;
|
2021-03-21 05:15:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|