Change:
Audio notifications in do not play and a pop-up appears with a JavaScript error. The error raised is quoted below: A screenshot of the error is also provided which references the store path pointing to . Steps to reproduce the behavior: . a notification from either a direct message, or the start of a meeting. with error appears. Notifications play an audio tone and do not create a Javascript error. If applicable, add screenshots to help explain your problem. ! NixOS configuration using flakes. version is 1.0.45. Other notifications in my system work fine such as Slack and Firefox. Running Hyprland, Gnome is also installed. Issue is not dependent on desktop environment as it occurs in both Gnome and Hyprland. Using for audio. Config below: <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result.
Hmm, I'm surprised I haven't had this issue (and I also use sway/pipewire). I'll look into it some time in the next few days if no one else figures it out first I also planned to update the package to 1.0.49 which may fix it, but that update is waiting on because of changes to the that need newer parsing for lockfile fixup
it seems like this might be fixed by . Do you think you could give that PR a try?
I still get it using the PR.
Can you try it again? I think I found the issue and just made another push to that PR
What's the best way to test PRs? Sorry, still fairly new to NixOS. I've tried building from a tarball with but I'm getting an error as follows: I also tried the method of using a tarball in my as per but I got a different error about .
The easiest method to test is probably when the teams-for-linux client isn't already running. That builds and runs the package from that PR
I'm no longer getting the error.
Also no longer getting the error. Thanks

Discussion:
, makeWrapper , makeDesktopItem , copyDesktopItems <del> , fixup_yarn_lock </del> , yarn , nodejs , fetchYarnDeps <ins> , fixup_yarn_lock </ins> , electron , libpulseaudio , pipewire <ins> , alsa-utils </ins> }: stdenv.mkDerivation rec { pname = "teams-for-linux"; <del> version = "1.0.45"; </del> <ins> version = "1.0.53"; </ins> src = fetchFromGitHub { owner = "IsmaelMartinez"; repo = pname; rev = "v${version}"; <del> sha256 = "sha256-Q6DFegFrLUW/YiRyYJI4ITVVyMC5IkazlzhdR8203cY="; </del> <ins> sha256 = "sha256-zigcOshtRQuQxJBXPWVmTjj5+4AorR5WW8lHVInUKFg="; </ins> }; offlineCache = fetchYarnDeps { <del> yarnLock = src + "/yarn.lock"; sha256 = "sha256-jaAieO5q+tNfWN7Rp6ueasl45cfp9W1QxPdqIeCnVkE="; </del> <ins> yarnLock = "${src}/yarn.lock"; sha256 = "sha256-3zjmVIPQ+F2jPQ2xkAv5hQUjr8k5jIHTsa73J+IMayw="; </ins> }; nativeBuildInputs = [ yarn fixup_yarn_lock nodejs copyDesktopItems makeWrapper ];

runHook preBuild yarn --offline electron-builder  <del> --dir --linux ${if stdenv.hostPlatform.isAarch64 then "--arm64" else "--x64"}  </del> <ins> --dir ${if stdenv.isDarwin then "--macos" else "--linux"} ${if stdenv.hostPlatform.isAarch64 then "--arm64" else "--x64"}  </ins> -c.electronDist=${electron}/lib/electron  -c.electronVersion=${electron.version}

runHook preInstall mkdir -p $out/share/{applications,teams-for-linux} <del> cp dist/linux-${lib.optionalString stdenv.hostPlatform.isAarch64 "arm64-"}unpacked/resources/app.asar $out/share/teams-for-linux/ </del> <ins> cp dist/${if stdenv.isDarwin then "darwin-" else "linux-"}${lib.optionalString stdenv.hostPlatform.isAarch64 "arm64-"}unpacked/resources/app.asar $out/share/teams-for-linux/ </ins> pushd build/icons for image in *png; do

done popd <ins> # Linux needs 'aplay' for notification sounds, 'libpulse' for meeting sound, and 'libpipewire' for screen sharing </ins> makeWrapper '${electron}/bin/electron' "$out/bin/teams-for-linux"  <del> --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio pipewire ]}  </del> <ins> ${lib.optionalString stdenv.isLinux '' --prefix PATH : ${lib.makeBinPath [ alsa-utils ]}  --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio pipewire ]}  ''}  </ins> --add-flags "$out/share/teams-for-linux/app.asar"  --add-flags "''${NIXOS_OZONE_WL:+''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"

description = "Unofficial Microsoft Teams client for Linux"; homepage = "https://github.com/IsmaelMartinez/teams-for-linux"; license = licenses.gpl3Only; <del> maintainers = with maintainers; [ muscaln ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; </del> <ins> maintainers = with maintainers; [ muscaln lilyinstarlight ]; platforms = platforms.unix; broken = stdenv.isDarwin; </ins> }; }