mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
33323e4006
- Make it run from anywhere - overwrite old packages only on success to prevent getting into a bad state
16 lines
492 B
Bash
Executable file
16 lines
492 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#! nix-shell shell-generate.nix -i bash
|
|
set -eu -o pipefail
|
|
|
|
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 -
|