@@ -10,7 +10,6 @@
1010, docutils
1111, doxygen
1212, graphviz
13−, valgrind
1413, glib
1514, dbus
1615, alsa-lib
@@ -28,28 +27,30 @@
2827, makeFontsConf
2928, callPackage
3029, nixosTests
30+, withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind
31+, valgrind
3132, withMediaSession ? true
3233, libcameraSupport ? true
3334, libcamera
3435, libdrm
3536, gstreamerSupport ? true
36−, gst_all_1 ? null
37+, gst_all_1
3738, ffmpegSupport ? true
38−, ffmpeg ? null
39+, ffmpeg
3940, bluezSupport ? true
40−, bluez ? null
41−, sbc ? null
42−, libfreeaptx ? null
43−, ldacbt ? null
44−, fdk_aac ? null
41+, bluez
42+, sbc
43+, libfreeaptx
44+, ldacbt
45+, fdk_aac
4546, nativeHspSupport ? true
4647, nativeHfpSupport ? true
4748, ofonoSupport ? true
4849, hsphfpdSupport ? true
4950, pulseTunnelSupport ? true
50−, libpulseaudio ? null
51+, libpulseaudio
5152, zeroconfSupport ? true
52−, avahi ? null
53+, avahi
5354}:
5455
5556let
@@ -121,7 +122,6 @@ let
121122 vulkan-headers
122123 vulkan-loader
123124 webrtc-audio-processing
124− valgrind
125125 SDL2
126126 systemd
127127 ] ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ]
@@ -131,6 +131,9 @@ let
131131 ++ lib.optional pulseTunnelSupport libpulseaudio
132132 ++ lib.optional zeroconfSupport avahi;
133133
134+ # Valgrind binary is required for running one optional test.
135+ checkInputs = lib.optional withValgrind valgrind;
136+
134137 mesonFlags = [
135138 "-Ddocs=enabled"
136139 "-Dudevrulesdir=lib/udev/rules.d"