config/overlays/kukkee/update-node-deps.sh

23 lines
561 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nodePackages.node2nix nix
set -euo pipefail
set -x
cd "$(dirname "${BASH_SOURCE[0]}")"
#store_src="$(nix-build . -A kukkee.src --no-out-link)"
store_src="$(nix-build -E 'with import <nixpkgs> {}; (callPackage ./default.nix {}).src' --no-out-link)"
node2nix \
--nodejs-14 \
--development \
--input "$store_src"/package.json \
--lock "$store_src"/package-lock.json \
--output ./node-packages.nix \
--composition ./node-composition.nix
# --node-env ../../development/node-packages/node-env.nix \