element-call: fix for Yarn 4.14
This commit is contained in:
@@ -21,6 +21,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-/5RkZNf/ErSxNwW0ZfPwF52k3fZzAQAFMmbJ9xM7f74=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Remove after updating since project has moved to pnpm
|
||||
# https://github.com/element-hq/element-call/blob/v0.19.2/package.json#L159
|
||||
./yarn-4.14-support.patch
|
||||
];
|
||||
|
||||
matrixJsSdkRevision = "6e3efef0c5f660df47cf00874927dec1c75cc3cf";
|
||||
matrixJsSdkOfflineCache = fetchYarnDeps {
|
||||
yarnLock = "${finalAttrs.offlineCache}/checkouts/${finalAttrs.matrixJsSdkRevision}/yarn.lock";
|
||||
@@ -47,8 +53,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
missingHashes = ./missing-hashes.json;
|
||||
offlineCache = yarn-berry.fetchYarnBerryDeps {
|
||||
inherit (finalAttrs) src missingHashes;
|
||||
hash = "sha256-Ose2PlsNHlCllynl+aIx/nToqtsqs7f43znOTLm2WEE=";
|
||||
inherit (finalAttrs) src missingHashes patches;
|
||||
hash = "sha256-2P4kwccT2WP2SlJJ1biZCRU8O+Y43sGJmfRTUujklUg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
diff --git a/.yarnrc.yml b/.yarnrc.yml
|
||||
--- a/.yarnrc.yml
|
||||
+++ b/.yarnrc.yml
|
||||
@@ -1,3 +1,6 @@
|
||||
nodeLinker: node-modules
|
||||
plugins:
|
||||
- .yarn/plugins/linker.cjs
|
||||
+approvedGitRepositories:
|
||||
+ - "**"
|
||||
+enableScripts: true
|
||||
diff --git a/yarn.lock b/yarn.lock
|
||||
--- a/yarn.lock
|
||||
+++ b/yarn.lock
|
||||
@@ -2,6 +2,6 @@
|
||||
# Manual changes might be lost - proceed with caution!
|
||||
|
||||
__metadata:
|
||||
- version: 8
|
||||
+ version: 9
|
||||
cacheKey: 10c0
|
||||
|
||||
Reference in New Issue
Block a user