all nuing with versions

This commit is contained in:
ari committed 2026-09-16 22:15:07 -04:00
1 parent 1e1da2f7a1
commit f5f6a98152
3 files changed
+44 -26

No files matched your search

+8
View File
@@ -55,3 +55,11 @@ def vsock-ssh-args [vsock_cid: int, guest_user: string, guest_host: string] {
def run-argv [argv: list<string>] {
^($argv | first) ...($argv | skip 1)
}
# --------------------------------------------------------------- version ---
# HERMENIX_VERSION is baked in at build time (flake.nix / modules/host.nix)
# as "YYYY.MM.DD-<commit-sha>" from this repo's own git metadata. "dev" is
# only seen running an unwrapped checkout of the script directly.
def hermenix-version [] { $env.HERMENIX_VERSION? | default "dev" }
def "main version" [] { print (hermenix-version) }