2022-02-10 20:34:41 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
|
|
|
|
|
|
|
# Run this script not via `./generate.sh`, but via `$PWD/generate.sh`.
|
|
|
|
# Else `nix-shell` will not find this script.
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
cd -- "$(dirname -- "$BASH_SOURCE[0]")"
|
|
|
|
|
|
|
|
node2nix \
|
2022-04-15 01:41:22 +00:00
|
|
|
--nodejs-14 \
|
2022-02-10 20:34:41 +00:00
|
|
|
--input node-packages.json \
|
|
|
|
--output node-packages-generated.nix \
|
|
|
|
--composition node-packages.nix \
|
|
|
|
--node-env ../../../development/node-packages/node-env.nix
|