2020-03-18 19:36:36 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ROOT="$(realpath "$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"/../../../../..)"
|
2019-06-09 15:25:00 +01:00
|
|
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
rm -f node-env.nix
|
2020-03-18 19:36:36 +00:00
|
|
|
$(nix-build $ROOT -A nodePackages.node2nix --no-out-link)/bin/node2nix \
|
|
|
|
--nodejs-10 \
|
2019-08-25 13:26:03 +01:00
|
|
|
-i node-packages.json \
|
|
|
|
-o node-packages.nix \
|
|
|
|
-c node-composition.nix \
|
|
|
|
--no-copy-node-env -e ../../../node-packages/node-env.nix
|