diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index d18a85d44ec5..d260b2900160 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -33,8 +33,6 @@ stdenv.mkDerivation ({ runHook postBuild ''; - nativeBuildInputs = neededNatives; - installPhase = '' runHook preInstall mkdir -p $out/node_modules @@ -57,5 +55,5 @@ stdenv.mkDerivation ({ propagatedNativeBuildInputs = (args.propagatedNativeBuildInputs or []) ++ [ nodejs ]; # Make buildNodePackage useful with --run-env - nativeBuildInputs = (args.nativeBuildInputs or []) ++ deps; + nativeBuildInputs = (args.nativeBuildInputs or []) ++ deps ++ neededNatives; } )