patches: Add teams-for-linux chore patch

This commit is contained in:
Charlotte Van Petegem 2023-11-23 09:47:53 +01:00
parent b75e1ca863
commit 9524780cdb
No known key found for this signature in database
GPG key ID: 019E764B7184435A

30
patches/269312.patch Normal file
View file

@ -0,0 +1,30 @@
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 a30f5be4ce9f37..4194043574d879 100644
--- a/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix
+++ b/pkgs/applications/networking/instant-messengers/teams-for-linux/default.nix
@@ -7,7 +7,7 @@
, yarn
, nodejs
, fetchYarnDeps
-, fixup_yarn_lock
+, prefetch-yarn-deps
, electron
, libpulseaudio
, pipewire
@@ -33,14 +33,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-SxUdTzk8WngkKwT05U8HJsK8+8ezcJWdiT/ettxpeEE=";
};
- nativeBuildInputs = [ yarn fixup_yarn_lock nodejs copyDesktopItems makeWrapper ];
+ nativeBuildInputs = [ yarn prefetch-yarn-deps nodejs copyDesktopItems makeWrapper ];
configurePhase = ''
runHook preConfigure
export HOME=$(mktemp -d)
yarn config --offline set yarn-offline-mirror $offlineCache
- fixup_yarn_lock yarn.lock
+ fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/