From 225fce2acc0c7204245a91394e47ccecd3e37fc8 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 16 Apr 2023 02:00:46 +0200 Subject: [PATCH] flake.nix: let version fall back to "0-dirty" --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fc33a72..cb91527 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ in naersk-lib.buildPackage { pname = "buzzrelay"; - version = with self; "${toString revCount}-${shortRev}"; + version = "${toString (self.sourceInfo.revCount or 0)}-${self.sourceInfo.shortRev or "dirty"}"; root = ./.; nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ openssl systemd ];