mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 10:22:31 +01:00
10 lines
339 B
Bash
10 lines
339 B
Bash
|
#!/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)
|
||
|
jq '.npm_deps_hash = "'$DEPS_HASH'"' hashes.json > $TMPFILE
|
||
|
mv -- "$TMPFILE" hashes.json
|
||
|
|
||
|
nom build .# || exit $?
|
||
|
git add hashes.json flake.lock flake.nix
|