mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
18 lines
676 B
Bash
18 lines
676 B
Bash
#!/usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
|
|
|
# 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
|
|
|
|
node2nix \
|
|
--nodejs-16 \
|
|
--node-env ../../../../development/node-packages/node-env.nix \
|
|
--development \
|
|
--input package.json \
|
|
--lock package-lock.json \
|
|
--output node-packages.nix \
|
|
--composition node-composition.nix
|
|
|
|
rm -f package.json package-lock.json
|