mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
15 lines
474 B
Bash
Executable File
15 lines
474 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
rm -f ./node-env.nix
|
|
src="$(nix-build --expr 'let pkgs = import ../../../.. {}; meta = (pkgs.lib.importJSON ./netlify-cli.json); in pkgs.fetchFromGitHub { inherit (meta) owner repo rev hash; }')"
|
|
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-18 \
|
|
;
|