From 5b8a2af96f2492f2687960396eb7b6cbd703b56c Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Mon, 29 Jan 2024 16:57:21 +0100
Subject: [PATCH] chore: update name

---
 flake.nix | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/flake.nix b/flake.nix
index e165d68..37f0b62 100644
--- a/flake.nix
+++ b/flake.nix
@@ -58,6 +58,14 @@
             bob = let
               projectDefinition = import ./project.nix;
               sourcePath = ./source;
+              
+              timestamp = with (import <nixpkgs> {});
+                            builtins.readFile (         
+                              runCommand "timestamp"
+                                         { when = builtins.currentTime; }
+                                         "echo -n `date -d @$when +%Y-%m-%d_%H-%M-%S` > $out"
+                            );
+              
             in
               # https://nixos.wiki/wiki/Go
               pkgs.buildGoModule {
@@ -76,7 +84,7 @@
                   "-X '${projectDefinition.modulePath}/release.commit=${projectDefinition.commitHash}'"
                   "-X '${projectDefinition.modulePath}/release.name=${projectDefinition.name}'"
                   "-X '${projectDefinition.modulePath}/release.mnemonic=${projectDefinition.mnemonic}'"
-                  "-X '${projectDefinition.modulePath}/release.buildDate=${builtins.date}'"
+                  "-X '${projectDefinition.modulePath}/release.buildDate=${timestamp}'"
                 ];
 
                 #vendorHash = null;
-- 
GitLab