nodePackages/buildNodePackage: put patch phase into configure phase, ignore shrinkwrap

This commit is contained in:
Jaka Hudoklin 2015-01-24 22:52:20 +01:00
parent 70a4fd863d
commit a00131bb32
1 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,9 @@ let
in stdenv.mkDerivation ({ in stdenv.mkDerivation ({
inherit src; inherit src;
postPatch = '' configurePhase = ''
runHook preConfigure
${patchShebangs "./"} ${patchShebangs "./"}
# Some version specifiers (latest, unstable, URLs, file paths) force NPM # Some version specifiers (latest, unstable, URLs, file paths) force NPM
@ -107,10 +109,9 @@ let
fs.writeFileSync("package.json", JSON.stringify(packageObj)); fs.writeFileSync("package.json", JSON.stringify(packageObj));
EOF EOF
) | node ) | node
'';
configurePhase = '' # We do not handle shrinkwraps yet
runHook preConfigure rm npm-shrinkwrap.json 2>/dev/null || true
mkdir build-dir mkdir build-dir
( (