From f567ff4440b5cfe085348620c2784d71cc5c7792 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 26 Nov 2021 13:32:29 +0100 Subject: 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) --- pkgs/applications/audio/pulseaudio-dlna/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/audio/pulseaudio-dlna/default.nix b/pkgs/applications/audio/pulseaudio-dlna/default.nix index 98803b32ec9fa..384718f1db541 100644 --- a/pkgs/applications/audio/pulseaudio-dlna/default.nix +++ b/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 -- cgit 1.4.1