Merge pull request #226661 from lilyinstarlight/fix/teams-for-linux-which

This commit is contained in:
Sandro 2023-04-19 01:26:57 +02:00 committed by GitHub
commit f14dc08e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,6 +12,7 @@
, libpulseaudio
, pipewire
, alsa-utils
, which
}:
stdenv.mkDerivation rec {
@ -76,7 +77,7 @@ stdenv.mkDerivation rec {
# Linux needs 'aplay' for notification sounds, 'libpulse' for meeting sound, and 'libpipewire' for screen sharing
makeWrapper '${electron}/bin/electron' "$out/bin/teams-for-linux" \
${lib.optionalString stdenv.isLinux ''
--prefix PATH : ${lib.makeBinPath [ alsa-utils ]} \
--prefix PATH : ${lib.makeBinPath [ alsa-utils which ]} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio pipewire ]} \
''} \
--add-flags "$out/share/teams-for-linux/app.asar" \