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