update script

This commit is contained in:
2026-03-05 16:05:14 +00:00
parent c8316d578a
commit 2a98e4f8db
3 changed files with 44 additions and 1 deletions

21
apps/aarch64-darwin/update Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env nu
use ../common.nu *
def main [...inputs: string] {
if ($inputs | is-empty) {
print_info "Updating all flake inputs"
nix flake update
} else {
print_info $"Updating flake inputs: ($inputs | str join ', ')"
nix flake update ...$inputs
}
print_info "Regenerating flake.nix"
nix run .#write-flake
print_info "Formatting"
alejandra .
print_success "Flake updated"
}