pipewire: disable ffado support when cross compiling

This commit is contained in:
Nick Cao 2023-07-11 15:43:17 +08:00 committed by K900
parent 8ed29e7bfc
commit 07b09fa0af

View File

@ -66,6 +66,7 @@
, mysofaSupport ? true , mysofaSupport ? true
, libmysofa , libmysofa
, tinycompress , tinycompress
, ffadoSupport ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
, ffado , ffado
}: }:
@ -127,7 +128,6 @@ let
buildInputs = [ buildInputs = [
alsa-lib alsa-lib
dbus dbus
ffado
glib glib
libjack2 libjack2
libusb1 libusb1
@ -151,7 +151,8 @@ let
++ lib.optional raopSupport openssl ++ lib.optional raopSupport openssl
++ lib.optional rocSupport roc-toolkit ++ lib.optional rocSupport roc-toolkit
++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ] ++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ]
++ lib.optional mysofaSupport libmysofa; ++ lib.optional mysofaSupport libmysofa
++ lib.optional ffadoSupport ffado;
# Valgrind binary is required for running one optional test. # Valgrind binary is required for running one optional test.
nativeCheckInputs = lib.optional withValgrind valgrind; nativeCheckInputs = lib.optional withValgrind valgrind;
@ -165,6 +166,7 @@ let
"-Dlibjack-path=${placeholder "jack"}/lib" "-Dlibjack-path=${placeholder "jack"}/lib"
"-Dlibv4l2-path=${placeholder "out"}/lib" "-Dlibv4l2-path=${placeholder "out"}/lib"
"-Dlibcamera=${mesonEnableFeature libcameraSupport}" "-Dlibcamera=${mesonEnableFeature libcameraSupport}"
"-Dlibffado=${mesonEnableFeature ffadoSupport}"
"-Droc=${mesonEnableFeature rocSupport}" "-Droc=${mesonEnableFeature rocSupport}"
"-Dlibpulse=${mesonEnableFeature pulseTunnelSupport}" "-Dlibpulse=${mesonEnableFeature pulseTunnelSupport}"
"-Davahi=${mesonEnableFeature zeroconfSupport}" "-Davahi=${mesonEnableFeature zeroconfSupport}"