2021-10-15 19:19:06 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
rm -f ./node-env.nix
|
2022-11-21 17:04:49 +00:00
|
|
|
src="$(nix-build --expr 'let pkgs = import ../../../.. {}; meta = (pkgs.lib.importJSON ./netlify-cli.json); in pkgs.fetchFromGitHub { inherit (meta) owner repo rev sha256; }')"
|
2021-10-15 19:19:06 +00: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 \
|
2023-06-02 15:05:07 +00:00
|
|
|
--nodejs-18 \
|
2021-10-15 19:19:06 +00:00
|
|
|
;
|