mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
pulseaudio-dlna: ensure pactl is available
pulseaudio-dlna shells out to pactl to configure sinks and sources. As pactl might not be in $PATH, add --suffix it (so pactl configured by the user get priority)
This commit is contained in:
parent
b1204359fa
commit
f567ff4440
|
@ -13,6 +13,7 @@
|
||||||
, sox
|
, sox
|
||||||
, vorbisSupport ? true
|
, vorbisSupport ? true
|
||||||
, vorbis-tools
|
, vorbis-tools
|
||||||
|
, pulseaudio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication {
|
python3Packages.buildPythonApplication {
|
||||||
|
@ -54,6 +55,11 @@ python3Packages.buildPythonApplication {
|
||||||
++ lib.optional soxSupport sox
|
++ lib.optional soxSupport sox
|
||||||
++ lib.optional vorbisSupport vorbis-tools;
|
++ lib.optional vorbisSupport vorbis-tools;
|
||||||
|
|
||||||
|
# pulseaudio-dlna shells out to pactl to configure sinks and sources.
|
||||||
|
# As pactl might not be in $PATH, add --suffix it (so pactl configured by the
|
||||||
|
# user get priority)
|
||||||
|
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ pulseaudio ]}" ];
|
||||||
|
|
||||||
# upstream has no tests
|
# upstream has no tests
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
$out/bin/pulseaudio-dlna --help > /dev/null
|
$out/bin/pulseaudio-dlna --help > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue