blob: d36f515ff8093ae1a18e75e0a635b8d595a09ec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix
# No official release
rev=691e53d2d703bd169e1f23a8d8dff3f008d8c4ef
u=https://raw.githubusercontent.com/Sorunome/mx-puppet-slack/$rev
# Download package.json and package-lock.json
curl -O $u/package.json
curl -O $u/package-lock.json
node2nix \
--nodejs-12 \
--node-env 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
|