nixpkgs/pkgs/servers/web-apps/whitebophir/generate.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
442 B
Bash
Raw Normal View History

2021-01-13 00:22:31 +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.
2021-01-13 00:22:31 +00:00
set -euo pipefail
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