2021-10-15 21:19:06 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
rm -f ./node-env.nix
|
2021-11-03 13:43:23 +01:00
|
|
|
src="$(nix-build --expr '(import ../../../.. {}).fetchFromGitHub (lib.importJSON ./netlify-cli.json)')"
|
2021-10-15 21:19:06 +02:00
|
|
|
echo $src
|
|
|
|
node2nix \
|
|
|
|
--input $src/package.json \
|
|
|
|
--lock $src/npm-shrinkwrap.json \
|
|
|
|
--output node-packages.nix \
|
|
|
|
--composition composition.nix \
|
|
|
|
--node-env node-env.nix \
|
|
|
|
--nodejs-14 \
|
|
|
|
;
|