buildNpmPackage: pass nativeBuildInputs to npmDeps (for patch phase)

This commit is contained in:
Herwig Hochleitner
2025-02-19 01:03:03 +01:00
committed by Masum Reza
parent 6ff6446488
commit fff29a3e5f
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ lib.extendMkDerivation {
patches
postPatch
patchFlags
nativeBuildInputs
;
name = "${name}-npm-deps";
hash = npmDepsHash;

View File

@@ -152,6 +152,7 @@
, hash ? ""
, forceGitDeps ? false
, forceEmptyCache ? false
, nativeBuildInputs ? [ ]
, ...
} @ args:
let
@@ -169,7 +170,7 @@
stdenvNoCC.mkDerivation (args // {
inherit name;
nativeBuildInputs = [ prefetch-npm-deps ];
nativeBuildInputs = nativeBuildInputs ++ [ prefetch-npm-deps ];
buildPhase = ''
runHook preBuild