Remove unused getCommitTime function

This commit is contained in:
Eli Ribble 2026-05-19 22:44:40 +00:00
parent 44c0356bcc
commit b42b1144b6
No known key found for this signature in database

View file

@ -1,23 +1,10 @@
{ ldflags, version, pkgs ? import <nixpkgs> { }, proj ? pkgs.proj }: { ldflags, version, pkgs ? import <nixpkgs> { }, 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 { pkgs.buildGoModule rec {
inherit ldflags version; inherit ldflags version;
pname = "nidus-sync"; pname = "nidus-sync";
src = ./.; src = ./.;
buildTime = getCommitTime;
meta = { meta = {
description = "Nidus Sync"; description = "Nidus Sync";
homepage = "https://github.com/Gleipnir-Technology/nidus-sync"; homepage = "https://github.com/Gleipnir-Technology/nidus-sync";