1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00
server/nix-update.sh

10 lines
337 B
Bash
Raw Normal View History

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
nix flake update
DEPS_HASH=`prefetch-npm-deps package-lock.json`
TMPFILE=$(mktemp)
2024-08-14 20:10:09 +02:00
jq '.npmDepsHash = "'$DEPS_HASH'"' hashes.json > $TMPFILE
2024-02-19 11:09:50 +01:00
mv -- "$TMPFILE" hashes.json
nom build .# || exit $?
git add hashes.json flake.lock flake.nix