pnpm.fetchDeps: fix use for cross

(cherry picked from commit 39fcc87a1b)
This commit is contained in:
FliegendeWurst
2025-04-12 11:30:06 +02:00
committed by github-actions[bot]
parent e03df76c3a
commit c997e52183

View File

@@ -10,6 +10,7 @@
withNode ? true,
version,
hash,
buildPackages,
}:
let
majorVersion = lib.versions.major version;
@@ -70,7 +71,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
passthru =
let
fetchDepsAttrs = callPackages ./fetch-deps { pnpm = finalAttrs.finalPackage; };
fetchDepsAttrs = callPackages ./fetch-deps {
pnpm = buildPackages."pnpm_${lib.versions.major version}";
};
in
{
inherit (fetchDepsAttrs) fetchDeps configHook;