summary refs log tree commit diff
path: root/pkgs/development/libraries/gtksourceview
diff options
context:
space:
mode:
authorMauricio Collares <mauricio@collares.org>2021-03-20 15:39:21 -0300
committerMauricio Collares <mauricio@collares.org>2021-03-20 15:45:57 -0300
commit380220c3c20ed6e7c62bcd9ea58f10c665ef557e (patch)
tree369b663d2989e7ca207b5f369e844a9f2c0bfbb9 /pkgs/development/libraries/gtksourceview
parentd9537b941c1ac008a38999f93470487fbfd77f98 (diff)
gtksourceview4: fix intermittent "resource not found" build errors
Diffstat (limited to 'pkgs/development/libraries/gtksourceview')
-rw-r--r--pkgs/development/libraries/gtksourceview/4.x.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gtksourceview/4.x.nix b/pkgs/development/libraries/gtksourceview/4.x.nix
index 72646fc198bbd..9ead894e0d25f 100644
--- a/pkgs/development/libraries/gtksourceview/4.x.nix
+++ b/pkgs/development/libraries/gtksourceview/4.x.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, pkg-config, atk, cairo, glib, gtk3, pango, fribidi, vala
+{ lib, stdenv, fetchurl, fetchpatch, pkg-config, atk, cairo, glib, gtk3, pango, fribidi, vala
 , libxml2, perl, gettext, gnome3, gobject-introspection, dbus, xvfb_run, shared-mime-info
 , meson, ninja }:
 
@@ -26,7 +26,16 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ atk cairo glib pango fribidi libxml2 ];
 
-  patches = [ ./4.x-nix_share_path.patch ];
+  patches = [
+    ./4.x-nix_share_path.patch
+
+    # fixes intermittent "gtksourceview-gresources.h: no such file" errors
+    (fetchpatch {
+      name = "ensure-access-to-resources-in-corelib-build.patch";
+      url = "https://gitlab.gnome.org/GNOME/gtksourceview/-/commit/9bea9d1c4a56310701717bb106c52a5324ee392a.patch";
+      sha256 = "sha256-rSB6lOFEyz58HfOSj7ZM48/tHxhqbtWWbh60JuySAZ0=";
+    })
+  ];
 
   enableParallelBuilding = true;