summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/meson/default.nix
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2020-08-13 17:25:13 -0700
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-08-14 08:23:53 +0200
commitdbac38cf0ed1666d433e13a77f7933a439c22bed (patch)
tree4bbfa095badbb7579db65ea97e73ae3427caadfc /pkgs/development/tools/build-managers/meson/default.nix
parent66a5125b30026676e76bc0b21cf3573641aad174 (diff)
downloadnixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar.gz
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar.bz2
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar.lz
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar.xz
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.tar.zst
nixpkgs-dbac38cf0ed1666d433e13a77f7933a439c22bed.zip
meson: Add upstream patch to stop failing on skipped tests
https://github.com/mesonbuild/meson/pull/7525

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/development/tools/build-managers/meson/default.nix')
-rw-r--r--pkgs/development/tools/build-managers/meson/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix
index c32635d80e1..a1c94fa1fce 100644
--- a/pkgs/development/tools/build-managers/meson/default.nix
+++ b/pkgs/development/tools/build-managers/meson/default.nix
@@ -4,6 +4,7 @@
 , writeTextDir
 , substituteAll
 , pkgsHostHost
+, fetchpatch
 }:
 
 python3.pkgs.buildPythonApplication rec {
@@ -16,6 +17,13 @@ python3.pkgs.buildPythonApplication rec {
   };
 
   patches = [
+    # Meson 0.55.0 incorrectly considers skipped tests as failures,
+    # which makes some packages like gjs fail to build.
+    (fetchpatch {
+      url = "https://github.com/mesonbuild/meson/commit/7db49db67d4aa7582cf46feb7157235e66aa95b1.diff";
+      sha256 = "1chq52sgk24afdlswssr8n8p6fa2wz8rjlxvkjhpqg1kg3qnqc9p";
+    })
+
     # Upstream insists on not allowing bindir and other dir options
     # outside of prefix for some reason:
     # https://github.com/mesonbuild/meson/issues/2561