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)
main
Florian Klink 3 years ago
parent b1204359fa
commit f567ff4440
  1. 6
      pkgs/applications/audio/pulseaudio-dlna/default.nix

@ -13,6 +13,7 @@
, sox
, vorbisSupport ? true
, vorbis-tools
, pulseaudio
}:
python3Packages.buildPythonApplication {
@ -54,6 +55,11 @@ python3Packages.buildPythonApplication {
++ lib.optional soxSupport sox
++ 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
checkPhase = ''
$out/bin/pulseaudio-dlna --help > /dev/null

Loading…
Cancel
Save