Skip to content

Commit ca6d09f

Browse files
committed
fix(nix): check if dirtyRev attribute is defined correctly
1 parent b8ee310 commit ca6d09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
VERGEN_GIT_COMMIT_COUNT = toString (self.sourceInfo.revCount or 0);
152152
VERGEN_GIT_COMMIT_DATE = self.sourceInfo.lastModifiedDate or "1970-01-01";
153153
VERGEN_GIT_COMMIT_TIMESTAMP = toString (self.sourceInfo.lastModified or 0);
154-
VERGEN_GIT_DIRTY = if self.dirtyRev != null then "true" else "false";
154+
VERGEN_GIT_DIRTY = lib.boolToString(self ? dirtyRev);
155155
VERGEN_GIT_BRANCH = "main";
156156

157157
# Build info

0 commit comments

Comments
 (0)