diff --git a/pkgs/by-name/in/insulator2/package.nix b/pkgs/by-name/in/insulator2/package.nix index d16bd7061f51..ea9675b86095 100644 --- a/pkgs/by-name/in/insulator2/package.nix +++ b/pkgs/by-name/in/insulator2/package.nix @@ -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 { diff --git a/pkgs/by-name/in/insulator2/yarn-4.14-support.patch b/pkgs/by-name/in/insulator2/yarn-4.14-support.patch new file mode 100644 index 000000000000..017f2d295ca9 --- /dev/null +++ b/pkgs/by-name/in/insulator2/yarn-4.14-support.patch @@ -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 +