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

View file

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