mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
buildNpmPackage: pass nativeBuildInputs to npmDeps (for patch phase)
This commit is contained in:
parent
6ff6446488
commit
fff29a3e5f
2 changed files with 3 additions and 1 deletions
|
@ -63,6 +63,7 @@ lib.extendMkDerivation {
|
||||||
patches
|
patches
|
||||||
postPatch
|
postPatch
|
||||||
patchFlags
|
patchFlags
|
||||||
|
nativeBuildInputs
|
||||||
;
|
;
|
||||||
name = "${name}-npm-deps";
|
name = "${name}-npm-deps";
|
||||||
hash = npmDepsHash;
|
hash = npmDepsHash;
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
, hash ? ""
|
, hash ? ""
|
||||||
, forceGitDeps ? false
|
, forceGitDeps ? false
|
||||||
, forceEmptyCache ? false
|
, forceEmptyCache ? false
|
||||||
|
, nativeBuildInputs ? [ ]
|
||||||
, ...
|
, ...
|
||||||
} @ args:
|
} @ args:
|
||||||
let
|
let
|
||||||
|
@ -169,7 +170,7 @@
|
||||||
stdenvNoCC.mkDerivation (args // {
|
stdenvNoCC.mkDerivation (args // {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
nativeBuildInputs = [ prefetch-npm-deps ];
|
nativeBuildInputs = nativeBuildInputs ++ [ prefetch-npm-deps ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue