2021-04-15 06:04:24 +02:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
|
|
|
|
|
|
|
# No official release
|
2022-01-29 23:52:29 +01:00
|
|
|
rev=bb6438a504182a7a64048b992179427587ccfded
|
2021-04-15 06:04:24 +02:00
|
|
|
u=https://raw.githubusercontent.com/matrix-discord/mx-puppet-discord/$rev
|
|
|
|
# Download package.json and package-lock.json
|
|
|
|
curl -O $u/package.json
|
2022-01-29 23:52:29 +01:00
|
|
|
curl $u/package-lock.json |
|
|
|
|
sed -e 's|git+ssh://git@|git+https://|g' > package-lock.json
|
2021-04-15 06:04:24 +02:00
|
|
|
|
|
|
|
node2nix \
|
2022-01-29 23:52:29 +01:00
|
|
|
--nodejs-14 \
|
2021-04-15 06:04:24 +02:00
|
|
|
--node-env ../../development/node-packages/node-env.nix \
|
|
|
|
--input package.json \
|
|
|
|
--lock package-lock.json \
|
|
|
|
--output node-packages.nix \
|
|
|
|
--composition node-composition.nix
|
|
|
|
|
|
|
|
sed -i 's|<nixpkgs>|../../..|' node-composition.nix
|
|
|
|
|
|
|
|
rm -f package.json package-lock.json
|