Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport staging-24.11] pipewire: disable webrtc-audio-processing if unavailable #362224

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion pkgs/development/libraries/pipewire/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.7";
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down
Loading