2019-10-06 12:43:27 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
|
|
|
|
2021-02-02 20:47:09 +00:00
|
|
|
# Download package.json and package-lock.json from the v0.3.3 release
|
|
|
|
curl https://raw.githubusercontent.com/dvallin/spacegun/f88cfd1cf653995a301ef4db4a1e387ef3ca01a1/package.json -o package.json
|
|
|
|
curl https://raw.githubusercontent.com/dvallin/spacegun/f88cfd1cf653995a301ef4db4a1e387ef3ca01a1/package-lock.json -o package-lock.json
|
|
|
|
|
2019-10-06 12:43:27 +01:00
|
|
|
node2nix \
|
|
|
|
--nodejs-10 \
|
|
|
|
--node-env ../../../../development/node-packages/node-env.nix \
|
|
|
|
--development \
|
|
|
|
--input package.json \
|
2021-02-02 20:47:09 +00:00
|
|
|
--lock package-lock.json \
|
2019-10-06 12:43:27 +01:00
|
|
|
--output node-packages.nix \
|
|
|
|
--composition node-composition.nix
|
2021-02-02 20:47:09 +00:00
|
|
|
|
|
|
|
rm -f package.json package-lock.json
|