2024-02-19 11:09:50 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -i "bash -x" -p bash prefetch-npm-deps jq git nix-output-monitor
|
2024-08-18 18:59:09 +02:00
|
|
|
nix flake update --extra-experimental-features 'nix-command flakes'
|
2024-02-19 11:09:50 +01:00
|
|
|
DEPS_HASH=`prefetch-npm-deps package-lock.json`
|
|
|
|
TMPFILE=$(mktemp)
|
2024-06-28 12:13:17 +02:00
|
|
|
jq '.npmDepsHash = "'$DEPS_HASH'"' hashes.json > $TMPFILE
|
2024-02-19 11:09:50 +01:00
|
|
|
mv -- "$TMPFILE" hashes.json
|
|
|
|
|
2024-08-18 18:59:09 +02:00
|
|
|
nom build .# --extra-experimental-features 'nix-command flakes' || exit $?
|
2024-06-28 12:13:17 +02:00
|
|
|
git add hashes.json flake.lock flake.nix
|