mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
17 lines
461 B
Bash
Executable File
17 lines
461 B
Bash
Executable File
#!/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 \
|
|
--nodejs-14 \
|
|
--input node-packages.json \
|
|
--output node-packages-generated.nix \
|
|
--composition node-packages.nix \
|
|
--node-env ../../../development/node-packages/node-env.nix
|