Unverified Commit 6eaaabf1 authored by Lily Foster's avatar Lily Foster
Browse files

teams-for-linux: fix notification sounds when which isn't in PATH

parent c28ad0ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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" \