From 20a9ac8d35bb9a3b618df441bcc7c6f09353b040 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 27 Oct 2021 09:00:38 +0800 Subject: pantheon.epiphany: update patches https://github.com/elementary/browser/pull/41 --- pkgs/desktops/gnome/core/epiphany/default.nix | 29 ++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'pkgs/desktops/gnome/core/epiphany/default.nix') diff --git a/pkgs/desktops/gnome/core/epiphany/default.nix b/pkgs/desktops/gnome/core/epiphany/default.nix index 617ef1cc38f..6f996552064 100644 --- a/pkgs/desktops/gnome/core/epiphany/default.nix +++ b/pkgs/desktops/gnome/core/epiphany/default.nix @@ -3,6 +3,7 @@ , ninja , gettext , fetchurl +, fetchpatch , pkg-config , gtk3 , glib @@ -46,12 +47,30 @@ stdenv.mkDerivation rec { sha256 = "s50YJUkllbC3TF1qZoaoV/lBnfpMAvgBPCl7yHDibdA="; }; - patches = lib.optionals withPantheon [ - # Make this respect dark mode settings from Pantheon + patches = [ + # tab-view: Update close button position on startup + # https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1025 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/6e9d6d3cf7fa7ddf21a70e9816a5cd4767a79523.patch"; + sha256 = "sha256-lBVliGCIKwTvsYnWjAcmJxhTg1HS/2x4wlOh+4sx/xQ="; + }) + ] ++ lib.optionals withPantheon [ + # Pantheon specific patches for epiphany # https://github.com/elementary/browser - # The patch currently differs from upstream (updated for epiphany 40 and 41). - ./pantheon-dark-style.patch - ./pantheon-navigation-buttons.patch + # + # 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="; + }) ]; nativeBuildInputs = [ -- cgit 1.4.1