pipewire: disable webrtc-audio-processing if unavailable
webrtc-audio-processing only supports specific architectures, so for unsupported architectures, we have to disable it for pipewire to build. Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
co-authored by
Sefa Eyeoglu
parent
8810e738c8
commit
437364b434
@@ -57,6 +57,14 @@
|
||||
, libselinux
|
||||
}:
|
||||
|
||||
let
|
||||
webrtc-audio-processings =
|
||||
lib.filter (lib.meta.availableOn stdenv.hostPlatform) [
|
||||
webrtc-audio-processing_1
|
||||
webrtc-audio-processing
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation(finalAttrs: {
|
||||
pname = "pipewire";
|
||||
version = "1.2.5";
|
||||
@@ -122,7 +130,7 @@ stdenv.mkDerivation(finalAttrs: {
|
||||
readline
|
||||
sbc
|
||||
] ++ (if enableSystemd then [ systemd ] else [ elogind udev ])
|
||||
++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ])
|
||||
++ lib.take 1 webrtc-audio-processings
|
||||
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform ldacbt) ldacbt
|
||||
++ lib.optional zeroconfSupport avahi
|
||||
++ lib.optional raopSupport openssl
|
||||
@@ -140,6 +148,7 @@ stdenv.mkDerivation(finalAttrs: {
|
||||
(lib.mesonEnable "installed_tests" true)
|
||||
(lib.mesonOption "installed_test_prefix" (placeholder "installedTests"))
|
||||
(lib.mesonOption "libjack-path" "${placeholder "jack"}/lib")
|
||||
(lib.mesonEnable "echo-cancel-webrtc" (webrtc-audio-processings != []))
|
||||
(lib.mesonEnable "libcamera" true)
|
||||
(lib.mesonEnable "libffado" ffadoSupport)
|
||||
(lib.mesonEnable "roc" rocSupport)
|
||||
|
||||
Reference in New Issue
Block a user