nix: drop update scripts, drop hashes.json, dependency drvs

This commit is contained in:
Rory&
2025-12-17 04:52:59 +01:00
parent 2acfa098ce
commit 01d16bb5b8
5 changed files with 9 additions and 50 deletions
+1 -9
View File
@@ -11,15 +11,7 @@ if [ -x "$(/usr/bin/env which nix-shell 2>/dev/null)" ]; then
nix-shell $0
exit $?
else
nix flake update
# run ./nix-update.sh if package lock has changed and has no unstaged changes
if [ -n "$(git status --porcelain=v1 2>/dev/null | grep -E '^(MM| M) package-lock.json')" ]; then
echo "package-lock.json has unstaged changes. Skipping update of nix dependencies."
elif [ ! -n "$(git status --porcelain=v1 2>/dev/null | grep -E '^M package-lock.json')" ]; then
echo "package-lock.json has no changes. Skipping update of nix dependencies."
else
nix run .#nix-update-hashes || exit $?
fi
nix flake update --extra-experimental-features 'nix-command flakes'
fi
else
echo "You do not appear to have nix installed. Skipping update of nix dependencies."