2017-05-05 08:31:21 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
2019-10-11 13:45:41 +01:00
|
|
|
#! nix-shell shell-generate.nix -i bash
|
2018-11-16 10:59:59 +00:00
|
|
|
set -eu -o pipefail
|
|
|
|
|
2019-10-11 13:45:41 +01:00
|
|
|
cd "$NODE_NIXPKGS_PATH/pkgs/development/node-packages"
|
|
|
|
rm -f ./node-env.nix
|
|
|
|
for version in 10 12 13; do
|
|
|
|
tmpdir=$(mktemp -d)
|
|
|
|
node2nix --nodejs-$version -i node-packages-v$version.json -o $tmpdir/node-packages-v$version.nix -c $tmpdir/composition-v$version.nix
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
mv $tmpdir/node-packages-v$version.nix .
|
|
|
|
mv $tmpdir/composition-v$version.nix .
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
cd -
|