From 6cd2d62a21f66f7ee0595a52a1dc328f0709e599 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 23 May 2024 16:25:45 -0700 Subject: [PATCH] add dirtyShortRev to make it work better --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index edf55a3..6a83ec1 100644 --- a/flake.nix +++ b/flake.nix @@ -8,7 +8,7 @@ inputs.flakey-profile.url = "github:lf-/flakey-profile"; outputs = inputs@{ self, nixpkgs, lix, flake-utils, flakey-profile, ... }: - let versionSuffix = "pre${builtins.substring 0 8 lix.lastModifiedDate}-${lix.shortRev}"; + let versionSuffix = "pre${builtins.substring 0 8 lix.lastModifiedDate}-${lix.shortRev or lix.dirtyShortRev}"; in { inherit inputs; nixosModules.default = import ./module.nix { inherit lix versionSuffix; };