qemu: add valgrind support (disabled by default)

Keeping it disabled by default because it's a debug feature, but it's
a useful thing to provide as an option.
This commit is contained in:
Alyssa Ross
2025-07-30 14:26:42 +02:00
parent 283a431c01
commit 2fd2baff9f
@@ -94,6 +94,8 @@
canokey-qemu,
capstoneSupport ? !minimal,
capstone,
valgrindSupport ? false,
valgrind-light,
pluginsSupport ? !stdenv.hostPlatform.isStatic,
enableDocs ? !minimal || toolsOnly,
enableTools ? !minimal || toolsOnly,
@@ -248,7 +250,8 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals smbdSupport [ samba ]
++ lib.optionals uringSupport [ liburing ]
++ lib.optionals canokeySupport [ canokey-qemu ]
++ lib.optionals capstoneSupport [ capstone ];
++ lib.optionals capstoneSupport [ capstone ]
++ lib.optionals valgrindSupport [ valgrind-light ];
dontUseMesonConfigure = true; # meson's configurePhase isn't compatible with qemu build
dontAddStaticConfigureFlags = true;