From d6740080b9f941d4657cadb6738cc972817064c9 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 22 Oct 2024 18:40:40 -0500 Subject: [PATCH] teams-for-linux: electron 30 -> electron 32 --- pkgs/by-name/te/teams-for-linux/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/te/teams-for-linux/package.nix b/pkgs/by-name/te/teams-for-linux/package.nix index f9304db390a16..e5f224b83e8f4 100644 --- a/pkgs/by-name/te/teams-for-linux/package.nix +++ b/pkgs/by-name/te/teams-for-linux/package.nix @@ -5,16 +5,13 @@ fetchFromGitHub, alsa-utils, copyDesktopItems, - electron_30, + electron_32, makeDesktopItem, makeWrapper, nix-update-script, which, }: -let - electronDist = "${electron_30}/${if stdenv.isDarwin then "Applications" else "libexec/electron"}"; -in buildNpmPackage rec { pname = "teams-for-linux"; version = "1.11.2"; @@ -41,7 +38,7 @@ buildNpmPackage rec { buildPhase = '' runHook preBuild - cp -r ${electronDist} electron-dist + cp -r ${electron_32.dist} electron-dist chmod -R u+w electron-dist npm exec electron-builder -- \ @@ -49,7 +46,7 @@ buildNpmPackage rec { -c.npmRebuild=true \ -c.asarUnpack="**/*.node" \ -c.electronDist=electron-dist \ - -c.electronVersion=${electron_30.version} + -c.electronVersion=${electron_32.version} runHook postBuild ''; @@ -71,7 +68,7 @@ buildNpmPackage rec { popd # Linux needs 'aplay' for notification sounds - makeWrapper '${lib.getExe electron_30}' "$out/bin/teams-for-linux" \ + makeWrapper '${lib.getExe electron_32}' "$out/bin/teams-for-linux" \ --prefix PATH : ${ lib.makeBinPath [ alsa-utils