r2modman: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 11:15:27 +03:00
committed by K900
parent 3b80713ea8
commit 1cbe6ab531
2 changed files with 26 additions and 2 deletions
+5 -2
View File
@@ -25,13 +25,16 @@ stdenv.mkDerivation (finalAttrs: {
missingHashes = ./missing-hashes.json;
offlineCache = yarn-berry.fetchYarnBerryDeps {
inherit (finalAttrs) src patches missingHashes;
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-7ty3ESydrDzXrUIdgDC1DqYrkhRX5FsIeOJ0rWP5X0k=";
hash = "sha256-6WfpOAt9XRw4fC+Ix9OoDPvg7oIxcdKRX5ttIywG14E=";
};
patches = [
# Make it possible to launch Steam games from r2modman.
./steam-launch-fix.patch
# Remove after upstream updates to Yarn 4.14
# https://github.com/ebkr/r2modmanPlus/blob/develop/package.json#L117
./yarn-4.14-support.patch
];
__darwinAllowLocalNetworking = true;
@@ -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