nixpkgs/pkgs/desktops/gnome/core/epiphany/default.nix
Bobby Rong 4788070d48
pantheon.epiphany: remove fixme
They are fixing the tab styling issues on their GTK theme and no actual things to do here.
2021-09-23 09:11:28 +08:00

124 lines
2.1 KiB
Nix

{ lib, stdenv
, meson
, ninja
, gettext
, fetchurl
, pkg-config
, gtk3
, glib
, icu
, wrapGAppsHook
, gnome
, pantheon
, 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
, withPantheon ? false
}:
stdenv.mkDerivation rec {
pname = "epiphany";
version = "40.3";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "2tE4ufLVXeJxEo/KOLYfU/2YDFh9KeG6a1CP/zsZ9WQ=";
};
patches = lib.optionals withPantheon [
# https://github.com/elementary/browser
./dark-style.patch
./navigation-buttons.patch
];
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
] ++ lib.optional withPantheon pantheon.granite;
# 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 ++ teams.pantheon.members;
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}