summary refs log tree commit diff
path: root/pkgs/development/libraries/mesa
diff options
context:
space:
mode:
authorMarian Hammer <marian.hammer@meetwise.com>2023-06-08 15:49:41 +0200
committerMarian Hammer <marian.hammer@meetwise.com>2023-06-08 15:59:35 +0200
commit996cc009c64bb5039308efc0656e55eb9bafa25b (patch)
treede75115761724929dd95af7614efab49436f3803 /pkgs/development/libraries/mesa
parentff3f331e401a080c8a1cc701b224587eafa4f562 (diff)
downloadnixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar.gz
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar.bz2
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar.lz
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar.xz
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.tar.zst
nixpkgs-996cc009c64bb5039308efc0656e55eb9bafa25b.zip
mesa: fix build without valgrind
Since the update to mesa v23.1.1 the build without valgrind was broken.
This is a result of a change in mesa meson_options.txt which made the
valgrind support a feature in mesa:

https://gitlab.freedesktop.org/mesa/mesa/-/commit/3f10a89180b5638d2c1870e91e06aeae67925717#0cc1139e3347f573ae1feee5b73dbc8a8a21fcfa_1844_1829

So it must be explicitly turned off as it is now on by default.
Diffstat (limited to 'pkgs/development/libraries/mesa')
-rw-r--r--pkgs/development/libraries/mesa/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix
index 38afcd174db..d56b34432d7 100644
--- a/pkgs/development/libraries/mesa/default.nix
+++ b/pkgs/development/libraries/mesa/default.nix
@@ -210,6 +210,8 @@ self = stdenv.mkDerivation {
     # Rusticl, new OpenCL frontend
     "-Dgallium-rusticl=true" "-Drust_std=2021"
     "-Dclang-libdir=${llvmPackages.clang-unwrapped.lib}/lib"
+  ]  ++ lib.optionals (!withValgrind) [
+    "-Dvalgrind=disabled"
   ] ++ lib.optional enablePatentEncumberedCodecs
     "-Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec"
   ++ lib.optional (vulkanLayers != []) "-D vulkan-layers=${builtins.concatStringsSep "," vulkanLayers}";