nixpkgs-suyu/pkgs/development/compilers/elm/packages/generate-node-packages.sh
Marek Fajkus b812a723f5
elmPackages: minor cleanups
* Make sure generate script uses node2nix version from the nixpkgs
* regenerate code generated by node2nix
2020-03-18 20:36:36 +01:00

13 lines
390 B
Bash
Executable file

#!/usr/bin/env bash
ROOT="$(realpath "$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"/../../../../..)"
set -eu -o pipefail
rm -f node-env.nix
$(nix-build $ROOT -A nodePackages.node2nix --no-out-link)/bin/node2nix \
--nodejs-10 \
-i node-packages.json \
-o node-packages.nix \
-c node-composition.nix \
--no-copy-node-env -e ../../../node-packages/node-env.nix