Fix nix-update.sh

This commit is contained in:
Emma [it/its]@Rory& 2024-08-14 20:10:09 +02:00
parent fd8196b02f
commit 35dde2e6e9
3 changed files with 3 additions and 3 deletions

BIN
flake.lock generated

Binary file not shown.

View File

@ -1,3 +1,3 @@
{
"npmDepsHash": "sha256-fZNDN2/fNy6Nu7tbr0RhQ8j4BP7X1Yhrh/fSTH7hbJc="
}
"npmDepsHash": "sha256-kdS1SwcBu6Dor92iO1ickLgz0T5UL16nyA49xXGajf4="
}

View File

@ -3,7 +3,7 @@
nix flake update
DEPS_HASH=`prefetch-npm-deps package-lock.json`
TMPFILE=$(mktemp)
jq '.npm_deps_hash = "'$DEPS_HASH'"' hashes.json > $TMPFILE
jq '.npmDepsHash = "'$DEPS_HASH'"' hashes.json > $TMPFILE
mv -- "$TMPFILE" hashes.json
nom build .# || exit $?