diff --git a/pkgs/applications/networking/instant-messengers/teams-for-linux/afterpack.patch b/pkgs/applications/networking/instant-messengers/teams-for-linux/afterpack.patch new file mode 100644 index 00000000000000..54fe25d0816c0a --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/teams-for-linux/afterpack.patch @@ -0,0 +1,22 @@ +diff --git a/scripts/afterpack.js b/scripts/afterpack.js +index b277343..e6372a3 100644 +--- a/scripts/afterpack.js ++++ b/scripts/afterpack.js +@@ -1,4 +1,5 @@ + const {flipFuses, FuseVersion, FuseV1Options} = require('@electron/fuses'); ++const {chmod} = require('fs/promises'); + + function getAppFileName(context) { + const productFileName = context.packager.appInfo.productFilename +@@ -19,8 +20,10 @@ function getAppFileName(context) { + + exports.default = async function afterPack(context) { + try { ++ const path = `${context.appOutDir}/${getAppFileName(context)}`; ++ await chmod(path, 0o755); + await flipFuses( +- `${context.appOutDir}/${getAppFileName(context)}`, ++ path, + { + version: FuseVersion.V1, + [FuseV1Options.EnableCookieEncryption]: true, diff --git a/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix b/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix index ed8ed30327816a..bb2a5b868b00fd 100644 --- a/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix +++ b/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix @@ -19,20 +19,23 @@ stdenv.mkDerivation (finalAttrs: { pname = "teams-for-linux"; - version = "1.3.22"; + version = "1.3.25"; src = fetchFromGitHub { owner = "IsmaelMartinez"; repo = "teams-for-linux"; rev = "v${finalAttrs.version}"; - hash = "sha256-nyhAq06k0nNrGSbD0N1RNwcplYf5vO1BvnvEfNYGG0A="; + hash = "sha256-Ela2rvDuUBzgkqIEpBgVNes9BzzPhcERC1QEEs5Swis="; }; offlineCache = fetchYarnDeps { yarnLock = "${finalAttrs.src}/yarn.lock"; - hash = "sha256-ydhJXAvz3k6GwpnSL6brl9xFpb+ooi8Am89TkcE00hc="; + hash = "sha256-EfdSwhndLtPLnDseSiRtNFYVPHZZoL+UsDA5QCitQ4o="; }; + # Upstream PR here: https://github.com/IsmaelMartinez/teams-for-linux/pull/1043 + patches = [ ./afterpack.patch ]; + nativeBuildInputs = [ yarn prefetch-yarn-deps nodejs copyDesktopItems makeWrapper ]; configurePhase = ''