2020-04-24 23:36:52 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ROOT="$(realpath "$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"/../../../../..)"
|
|
|
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
rm -f node-env.nix
|
|
|
|
$(nix-build $ROOT -A nodePackages.node2nix --no-out-link)/bin/node2nix \
|
2020-07-18 16:06:22 +00:00
|
|
|
--nodejs-12 \
|
2020-04-24 23:36:52 +00:00
|
|
|
-i node-packages.json \
|
|
|
|
-o node-packages.nix \
|
|
|
|
-c node-composition.nix \
|
2020-12-07 07:45:13 +00:00
|
|
|
# TODO: Switch to the commented out version once nodejs package set gets updated to new node2nix
|
|
|
|
-e node-env.nix
|
|
|
|
# --no-copy-node-env -e ../../../node-packages/node-env.nix
|