hedgedoc: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 11:15:26 +03:00
committed by K900
parent e28d4b75e9
commit fb4dfe04b2
2 changed files with 31 additions and 2 deletions
+8 -2
View File
@@ -20,13 +20,19 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-9gKpjmE8z/9PUILCiVK1utNYKD8kscbCBKxerqTO3z4=";
};
patches = [
# Remove after upstream updates to Yarn 4.14
# https://github.com/hedgedoc/hedgedoc/blob/develop/package.json#L28
./yarn-4.14-support.patch
];
# Generate this file with:
# nix run nixpkgs#yarn-berry_4.yarn-berry-fetcher missing-hashes yarn.lock
missingHashes = ./missing-hashes.json;
offlineCache = yarn-berry_4.fetchYarnBerryDeps {
inherit (finalAttrs) src missingHashes;
hash = "sha256-HbrkmuL1OBZZoA6o438GePId50lJrYfI7M2FsP00YGc=";
inherit (finalAttrs) src missingHashes patches;
hash = "sha256-AMTSCM8dNwAddI3QZMFDzxJmJPvJ9fGK79at2I0S/pE=";
};
nativeBuildInputs = [
@@ -0,0 +1,23 @@
diff --git a/.yarnrc.yml b/.yarnrc.yml
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -4,4 +4,7 @@ enableGlobalCache: false
nodeLinker: node-modules
-yarnPath: .yarn/releases/yarn-4.13.0.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: 10