snapcast: add pulseaudio support (#144674)
This commit is contained in:
parent
1848e2db99
commit
75c771c0ed
@ -1,7 +1,10 @@
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
|
||||
, alsa-lib, asio, avahi, boost17x, flac, libogg, libvorbis, soxr
|
||||
, pulseaudioSupport ? false, libpulseaudio
|
||||
, nixosTests }:
|
||||
|
||||
assert pulseaudioSupport -> libpulseaudio != null;
|
||||
|
||||
let
|
||||
|
||||
dependency = { name, version, sha256 }:
|
||||
@ -50,7 +53,7 @@ stdenv.mkDerivation rec {
|
||||
boost17x
|
||||
alsa-lib asio avahi flac libogg libvorbis
|
||||
aixlog popl soxr
|
||||
];
|
||||
] ++ lib.optional pulseaudioSupport libpulseaudio;
|
||||
|
||||
# Upstream systemd unit files are pretty awful, so we provide our own in a
|
||||
# NixOS module. It might make sense to get that upstreamed...
|
||||
|
@ -9471,7 +9471,9 @@ with pkgs;
|
||||
|
||||
snallygaster = callPackage ../tools/security/snallygaster { };
|
||||
|
||||
snapcast = callPackage ../applications/audio/snapcast { };
|
||||
snapcast = callPackage ../applications/audio/snapcast {
|
||||
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
|
||||
};
|
||||
|
||||
snapdragon-profiler = callPackage ../tools/graphics/snapdragon-profiler { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user