From 29df169c81d963742cc973a8835a7c1a126d7220 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 19 Feb 2024 10:09:50 +0000 Subject: Add nix flake to repo (#1111) --- nix-update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 nix-update.sh (limited to 'nix-update.sh') diff --git a/nix-update.sh b/nix-update.sh new file mode 100755 index 00000000..4413e6e0 --- /dev/null +++ b/nix-update.sh @@ -0,0 +1,10 @@ +#!/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 \ No newline at end of file -- cgit 1.4.1