diff --git a/default.nix b/default.nix index 24a83339..fd9dad58 100644 --- a/default.nix +++ b/default.nix @@ -1,23 +1,10 @@ { ldflags, version, pkgs ? import { }, proj ? pkgs.proj }: -let - # Get commit timestamp at eval time (pure) - getCommitTime = - if builtins.pathExists ./.git - then builtins.replaceStrings ["\n"] [""] (builtins.readFile ( - pkgs.runCommand "git-commit-time" {} '' - ${pkgs.git}/bin/git -C ${./.} log -1 --format=%ct > $out - '' - )) - else "0"; -in pkgs.buildGoModule rec { inherit ldflags version; pname = "nidus-sync"; src = ./.; - buildTime = getCommitTime; - meta = { description = "Nidus Sync"; homepage = "https://github.com/Gleipnir-Technology/nidus-sync";