summary refs log tree commit diff
path: root/pkgs/development/libraries/gtksourceview
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-11-10 00:06:33 +0200
committerArtturin <Artturin@artturin.com>2022-11-10 00:06:33 +0200
commit62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c (patch)
treef9ec12c67e59bf14940ec033f4512443274e02b3 /pkgs/development/libraries/gtksourceview
parent83f0198962b4016210d20713fd437eb099b06f76 (diff)
downloadnixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar.gz
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar.bz2
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar.lz
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar.xz
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.tar.zst
nixpkgs-62f9cc2bdcc274fb7a06c2b63a67e67334b9a76c.zip
gtksourceview{4,5}: fix cross
5 depends on opencv for which cross doesn't work so i coudlnt test it
Diffstat (limited to 'pkgs/development/libraries/gtksourceview')
-rw-r--r--pkgs/development/libraries/gtksourceview/4.x.nix7
-rw-r--r--pkgs/development/libraries/gtksourceview/5.x.nix7
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gtksourceview/4.x.nix b/pkgs/development/libraries/gtksourceview/4.x.nix
index b7828de4558..a72229237fb 100644
--- a/pkgs/development/libraries/gtksourceview/4.x.nix
+++ b/pkgs/development/libraries/gtksourceview/4.x.nix
@@ -70,6 +70,13 @@ stdenv.mkDerivation rec {
     dbus
   ];
 
+  postPatch = ''
+    # https://gitlab.gnome.org/GNOME/gtksourceview/-/merge_requests/295
+    # build: drop unnecessary vapigen check
+    substituteInPlace meson.build \
+      --replace "if generate_vapi" "if false"
+  '';
+
   # Broken by PCRE 2 bump in GLib.
   # https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/283
   doCheck = false;
diff --git a/pkgs/development/libraries/gtksourceview/5.x.nix b/pkgs/development/libraries/gtksourceview/5.x.nix
index 25bd8127a54..d3b1cc42a12 100644
--- a/pkgs/development/libraries/gtksourceview/5.x.nix
+++ b/pkgs/development/libraries/gtksourceview/5.x.nix
@@ -74,6 +74,13 @@ stdenv.mkDerivation rec {
     "-Dgtk_doc=true"
   ];
 
+  postPatch = ''
+    # https://gitlab.gnome.org/GNOME/gtksourceview/-/merge_requests/295
+    # build: drop unnecessary vapigen check
+    substituteInPlace meson.build \
+      --replace "if generate_vapi" "if false"
+  '';
+
   doCheck = stdenv.isLinux;
 
   checkPhase = ''