From 4d900eafd13ba4bfbba696bcf860ea7c0fba1e40 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 28 Mar 2026 22:48:44 -0700 Subject: [PATCH] Derive flake version from git rev instead of hardcoding Eliminates the manual version bump in flake.nix on each release. Uses self.shortRev (or dirtyShortRev) since self.gitDescribe is not yet available in this Nix version. Makefile builds still get the full git describe output via ldflags. Co-Authored-By: Claude Opus 4.6 (1M context) --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 365d91e..ac72089 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; - version = "0.7.5"; + version = pkgs.lib.removePrefix "v" (self.gitDescribe or self.shortRev or self.dirtyShortRev or "unknown"); in { packages.${system} = {