From 8a9f7035753bfdbae702e3ea61f187ffc734e297 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 3 Oct 2024 00:16:20 +0200 Subject: [PATCH] Make ros2nix version (date-time) more human readable --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 874c0e4..c40759b 100644 --- a/flake.nix +++ b/flake.nix @@ -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;