Skip to content

Commit

Permalink
teams-for-linux: 1.11.0 -> 1.11.2 (#350497)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored Oct 23, 2024
2 parents 3fa42f4 + 0cf4af9 commit 2e81cfb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/by-name/te/teams-for-linux/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
fetchFromGitHub,
alsa-utils,
copyDesktopItems,
electron_30,
electron_32,
makeDesktopItem,
makeWrapper,
nix-update-script,
Expand All @@ -15,16 +15,16 @@

buildNpmPackage rec {
pname = "teams-for-linux";
version = "1.11.0";
version = "1.11.2";

src = fetchFromGitHub {
owner = "IsmaelMartinez";
repo = "teams-for-linux";
rev = "refs/tags/v${version}";
hash = "sha256-UNe4stYEOTcQc+ap1/v9EXjHTwKvLYd4t8EPuojDyqw=";
hash = "sha256-fSZ94Px0NuxUZqc9cHE6czG/VzNsWp+UXllq7kEQvtI=";
};

npmDepsHash = "sha256-OpoPXcSiHnK4UYFimY+yOM6M3dAOcvZ82DdGc++oNLM=";
npmDepsHash = "sha256-MfPdOqxiMDsvxsS3yWukRokDitqWQpTpK407xVX461o=";

nativeBuildInputs = [
makeWrapper
Expand All @@ -42,15 +42,15 @@ buildNpmPackage rec {
buildPhase = ''
runHook preBuild
cp -r ${electron_30.dist} electron-dist
cp -r ${electron_32.dist} electron-dist
chmod -R u+w electron-dist
npm exec electron-builder -- \
--dir \
-c.npmRebuild=true \
-c.asarUnpack="**/*.node" \
-c.electronDist=electron-dist \
-c.electronVersion=${electron_30.version}
-c.electronVersion=${electron_32.version}
runHook postBuild
'';
Expand All @@ -72,7 +72,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
Expand Down Expand Up @@ -109,6 +109,8 @@ buildNpmPackage rec {

passthru.updateScript = nix-update-script { };

versionCheckProgramArg = [ "--version" ];

meta = {
description = "Unofficial Microsoft Teams client for Linux";
mainProgram = "teams-for-linux";
Expand Down

0 comments on commit 2e81cfb

Please sign in to comment.