From dffd1e8f3f5796e1cba80515b4a13c73e6ac9bc2 Mon Sep 17 00:00:00 2001 From: Multipixelone Date: Mon, 29 Sep 2025 21:46:07 -0400 Subject: [PATCH] snapcast: add pipewireSupport the most recent release 0.33 adds a cmake flag to build the application with pipewire support. Standard convention builds the package with pipewire support if the hostPlatform isLinux. --- pkgs/applications/audio/snapcast/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/snapcast/default.nix b/pkgs/applications/audio/snapcast/default.nix index 1ad175bb0376..cf40ea7d9552 100644 --- a/pkgs/applications/audio/snapcast/default.nix +++ b/pkgs/applications/audio/snapcast/default.nix @@ -17,7 +17,9 @@ aixlog, popl, pulseaudioSupport ? false, + pipewireSupport ? stdenv.hostPlatform.isLinux, libpulseaudio, + pipewire, nixosTests, openssl, }: @@ -54,11 +56,15 @@ stdenv.mkDerivation rec { openssl ] ++ lib.optional pulseaudioSupport libpulseaudio + ++ lib.optional pipewireSupport pipewire ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib; TARGET = lib.optionalString stdenv.hostPlatform.isDarwin "MACOS"; - cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_PULSE" pulseaudioSupport) ]; + cmakeFlags = [ + (lib.cmakeBool "BUILD_WITH_PULSE" pulseaudioSupport) + (lib.cmakeBool "BUILD_WITH_PIPEWIRE" pipewireSupport) + ]; # Upstream systemd unit files are pretty awful, so we provide our own in a # NixOS module. It might make sense to get that upstreamed...