cockpit-zfs: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 11:10:44 +03:00
committed by K900
parent 8b34fccf2e
commit d4a6342d33
2 changed files with 19 additions and 2 deletions
+8 -2
View File
@@ -40,12 +40,18 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-d1wurTha4LIe01oogJZHfLdTvBnEsNG9sGO8CfyS+GE=";
};
patches = [
# Remove after upstream updates to Yarn 4.14
# https://github.com/45Drives/cockpit-zfs/blob/main/package.json#L13
./yarn-4.14-support.patch
];
missingHashes = ./missing-hashes.json;
# Use buildPackages for cross-compilation support
offlineCache = buildPackages.yarn-berry.fetchYarnBerryDeps {
inherit (finalAttrs) src missingHashes;
hash = "sha256-YnR1SqBGnxEQaGUGMNTHHEGcOIhuGbWnqMdr4eRGXcA=";
inherit (finalAttrs) src missingHashes patches;
hash = "sha256-Tdxe5bXN9psSrnUXL1f+1nh4WPzuvOI7j0I+VPU2/1s=";
};
nativeBuildInputs = [
@@ -0,0 +1,11 @@
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