Make ros2nix version (date-time) more human readable

This commit is contained in:
Michal Sojka 2024-10-03 00:16:20 +02:00
parent 8736e74512
commit 8a9f703575

View file

@ -56,7 +56,8 @@
});
ros2nix = pkgs.python3Packages.buildPythonApplication {
pname = "ros2nix";
version = inputs.self.lastModifiedDate;
version = let lmd = self.lastModifiedDate; in with builtins;
"${substring 0 8 lmd}-${substring 8 6 lmd}";
src = pkgs.lib.cleanSource ./.;
pyproject = true;