nix: add lastModifiedDate to version for better diffing

This commit is contained in:
atagen 2026-05-24 19:26:31 +10:00
parent 591cac7662
commit 6efd841520

View file

@ -95,7 +95,10 @@
# Pull from the workspace Cargo.toml — the per-crate
# manifests use `version.workspace = true` which evaluates
# to a table here, not a string.
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version;
version =
(builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version
+ "-"
+ (toString self.lastModifiedDate);
src = ./.;