Commit fff29a3e authored by Herwig Hochleitner's avatar Herwig Hochleitner Committed by Masum Reza
Browse files

buildNpmPackage: pass nativeBuildInputs to npmDeps (for patch phase)

parent 6ff64464
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ lib.extendMkDerivation {
          patches
          postPatch
          patchFlags
          nativeBuildInputs
          ;
        name = "${name}-npm-deps";
        hash = npmDepsHash;
+2 −1
Original line number Diff line number Diff line
@@ -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