nodePackages/buildNodePackage: put patch phase into configure phase, ignore shrinkwrap
This commit is contained in:
parent
70a4fd863d
commit
a00131bb32
|
@ -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
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue