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