summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/libraries/gegl/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gegl/default.nix b/pkgs/development/libraries/gegl/default.nix
index ecf9090864d..619226fb2cc 100644
--- a/pkgs/development/libraries/gegl/default.nix
+++ b/pkgs/development/libraries/gegl/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchurl
+, fetchpatch
 , pkg-config
 , vala
 , gobject-introspection
@@ -47,6 +48,18 @@ stdenv.mkDerivation rec {
     sha256 = "q6g6DLqmxW7cKeoi8ugXKVClO5bapRWSCD1ZIivd4C0=";
   };
 
+  patches = [
+    # Fix memory management issues revealed by GLib 2.76 update.
+    (fetchpatch {
+      url = "https://gitlab.gnome.org/GNOME/gegl/-/commit/f2f2cea219f2265e152e3308004dc98d2fd48f33.patch";
+      hash = "sha256-5GR8zHvuiH9eapPDnIEGr/ksYw6feKqMaJlmj83R4XY=";
+    })
+    (fetchpatch {
+      url = "https://gitlab.gnome.org/GNOME/gegl/-/commit/79e28a7d3a843114588f4b5a095ff7a797c0e2e1.patch";
+      hash = "sha256-+2iT+THlLcOgFvGl76IUWGhww+H8rzDWmXn0Kq6YCUk=";
+    })
+  ];
+
   nativeBuildInputs = [
     pkg-config
     gettext