Unverified Commit dd0f821e authored by Lily Foster's avatar Lily Foster
Browse files

teams-for-linux: use electron_24 for now

Upstream downgraded their own builds back to Electron 24 because of
issues. Several nixpkgs users have reported that they are also having
those Electron 25 issues with our packaged version, so just downgrade it
for now until upstream fixes it.
parent 1443ffe2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
, nodejs
, fetchYarnDeps
, fixup_yarn_lock
, electron
, electron_24
, libpulseaudio
, pipewire
, alsa-utils
@@ -50,8 +50,8 @@ stdenv.mkDerivation (finalAttrs: {

    yarn --offline electron-builder \
      --dir ${if stdenv.isDarwin then "--macos" else "--linux"} ${if stdenv.hostPlatform.isAarch64 then "--arm64" else "--x64"} \
      -c.electronDist=${electron}/libexec/electron \
      -c.electronVersion=${electron.version}
      -c.electronDist=${electron_24}/libexec/electron \
      -c.electronVersion=${electron_24.version}

    runHook postBuild
  '';
@@ -70,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
    popd

    # Linux needs 'aplay' for notification sounds, 'libpulse' for meeting sound, and 'libpipewire' for screen sharing
    makeWrapper '${electron}/bin/electron' "$out/bin/teams-for-linux" \
    makeWrapper '${electron_24}/bin/electron' "$out/bin/teams-for-linux" \
      ${lib.optionalString stdenv.isLinux ''
        --prefix PATH : ${lib.makeBinPath [ alsa-utils which ]} \
        --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio pipewire ]} \