diff --git a/pkgs/by-name/he/hedgedoc/package.nix b/pkgs/by-name/he/hedgedoc/package.nix index a7e425f8acf5..1f608ecc8be0 100644 --- a/pkgs/by-name/he/hedgedoc/package.nix +++ b/pkgs/by-name/he/hedgedoc/package.nix @@ -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 = [ diff --git a/pkgs/by-name/he/hedgedoc/yarn-4.14-support.patch b/pkgs/by-name/he/hedgedoc/yarn-4.14-support.patch new file mode 100644 index 000000000000..965bede33cf7 --- /dev/null +++ b/pkgs/by-name/he/hedgedoc/yarn-4.14-support.patch @@ -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 +