insulator2: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 10:59:39 +03:00
committed by K900
parent a3ae362a1d
commit 3c44cd1e8f
2 changed files with 29 additions and 2 deletions
+8 -2
View File
@@ -34,10 +34,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-3eDA+pwchnwWtweGeSDlf+Vt0Hoylmanf4hnvJ2YOGU=";
};
patches = [
# Remove after upstream updates to Yarn 4.14
# https://github.com/andrewinci/insulator2/blob/main/package.json#L105
./yarn-4.14-support.patch
];
missingHashes = ./missing-hashes.json;
offlineCache = yarn-berry_4.fetchYarnBerryDeps {
inherit (finalAttrs) src missingHashes;
hash = "sha256-3BgvOoGMY86xzSHf6S0265PYOPEgLv77nT6CO9IGdwc=";
inherit (finalAttrs) src missingHashes patches;
hash = "sha256-IechRla3epfANBESCYgti5/8B3QaPCv6Gp2I4eZNiyI=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
@@ -0,0 +1,21 @@
diff --git a/.yarnrc.yml b/.yarnrc.yml
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1 +1,6 @@
nodeLinker: node-modules
+
+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