zoom-us: add pulseaudio to PATH

Zoom wants to be able to invoke `pactl` or `pacmd` in order to support
computer audio sharing.
This commit is contained in:
Olli Helenius 2024-09-23 15:50:12 +03:00 committed by Bjørn Forsman
parent affe201a2a
commit bafb19f793

View File

@ -38,6 +38,7 @@
, util-linux
, pulseaudioSupport ? true
, libpulseaudio
, pulseaudio
}:
let
@ -112,6 +113,7 @@ let
libkrb5
] ++ lib.optional (pulseaudioSupport) libpulseaudio);
binPath = lib.makeBinPath ([ coreutils glib.dev pciutils procps util-linux ] ++ lib.optional pulseaudioSupport pulseaudio);
in
stdenv.mkDerivation rec {
pname = "zoom";
@ -178,7 +180,7 @@ stdenv.mkDerivation rec {
--unset QML2_IMPORT_PATH \
--unset QT_PLUGIN_PATH \
--unset QT_SCREEN_SCALE_FACTORS \
--prefix PATH : ${lib.makeBinPath [ coreutils glib.dev pciutils procps util-linux ]} \
--prefix PATH : ${binPath} \
--prefix LD_LIBRARY_PATH ":" ${libs}
wrapProgram $out/opt/zoom/ZoomWebviewHost \