flake.nix: let version fall back to "0-dirty"

This commit is contained in:
Astro 2023-04-16 02:00:46 +02:00
parent a098ed6472
commit 225fce2acc

View file

@ -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 ];