Skip to content

Commit

Permalink
undo 3970a1b
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Sep 3, 2021
1 parent 3970a1b commit 51107c2
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions internal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ rec {
if grep -I -q -r '/bin/' .; then
source $TMP/preinstall-env
patchShebangs . | tail -n+2
# tail -n+2: remove output "patching script interpreter paths in ." (DIRTY)
patchShebangs .
fi
'';
executable = true;
Expand Down Expand Up @@ -402,24 +401,11 @@ rec {

buildPhase = ''
runHook preBuild
# DEBUG
#set -o xtrace # print all commands
#cat package-lock.json | jq -r
#cat package.json | jq -r
mkdir -p node_modules/.hooks
declare -pf > $TMP/preinstall-env
ln -s ${preinstall_node_modules}/node_modules/.hooks/prepare node_modules/.hooks/preinstall
export HOME=.
# npm --silent: remove npm "trace" output:
# > [email protected] preinstall /build/node_modules/some-package
# > /build/node_modules/.hooks/preinstall
#
echo "run 'npm install' ..."
npm --silent install --offline --nodedir=${nodeSource nodejs}
npm install --offline --nodedir=${nodeSource nodejs}
test -d node_modules/.bin && patchShebangs node_modules/.bin
rm -rf node_modules/.hooks
runHook postBuild
Expand Down

0 comments on commit 51107c2

Please sign in to comment.