about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMaxine Aubrey <maxeaubrey@gmail.com>2022-05-13 22:54:42 +0200
committerJan Tojnar <jtojnar@gmail.com>2022-05-16 03:28:03 +0200
commit2ed533a838c77c7b60ecec25aff3b7088e6521fc (patch)
tree194912b1b62f5860069d24b0a1efabafb78e5369 /pkgs
parent1d7db1b9e4cf1ee075a9f52e5c36f7b9f4207502 (diff)
gtk4: patch fixing g-c-c crashes
(cherry picked from commit 5d15a099b94be16ee619053ed6bcbddefd561a19)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/gtk/4.x.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gtk/4.x.nix b/pkgs/development/libraries/gtk/4.x.nix
index e59e471a51eb7..a93459c1f8747 100644
--- a/pkgs/development/libraries/gtk/4.x.nix
+++ b/pkgs/development/libraries/gtk/4.x.nix
@@ -2,6 +2,7 @@
 , stdenv
 , substituteAll
 , fetchurl
+, fetchpatch
 , pkg-config
 , gettext
 , graphene
@@ -77,6 +78,15 @@ stdenv.mkDerivation rec {
     sha256 = "pXrNDkSCmBcA/fhllsdBPLYe9H915HR/2oCegjG42Ww=";
   };
 
+  patches = [
+    # Fix GNOME Control Center crash.
+    # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4670
+    (fetchpatch {
+      url = "https://gitlab.gnome.org/GNOME/gtk/-/commit/ae0166973795e750f08b89f9f0ef974d7ac48bc7.patch";
+      sha256 = "qPOplocE+RcTFIEveJe8YLKiUpe7o6CiA834rZpS0Fs=";
+    })
+  ];
+
   nativeBuildInputs = [
     gettext
     gobject-introspection