From 632255baff567328d235376d09214f8f6e2f03ea Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 18 Nov 2024 17:05:52 -0500 Subject: [PATCH] Add update script This script runs nix-update for custom packages and updates the flake.lock file. For some reason, nix-update doesn't use passthru.updateScript on a flake package. --- update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..d6b2785 --- /dev/null +++ b/update.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p nix-update + +set -Eeuxo pipefail + +cd "$(dirname "$0")" + +nix flake update + +nix-update --flake redlib --version=branch=main