1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-21 18:02:33 +01:00
server/nix-update.sh

11 lines
440 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
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)
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 $?
git add hashes.json flake.lock flake.nix