nodePackages/buildNodePackage: put patch phase into configure phase, ignore shrinkwrap
This commit is contained in:
parent
70a4fd863d
commit
a00131bb32
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue