Remove unused getCommitTime function
This commit is contained in:
parent
44c0356bcc
commit
b42b1144b6
1 changed files with 0 additions and 13 deletions
13
default.nix
13
default.nix
|
|
@ -1,23 +1,10 @@
|
|||
{ 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 {
|
||||
inherit ldflags version;
|
||||
pname = "nidus-sync";
|
||||
src = ./.;
|
||||
|
||||
buildTime = getCommitTime;
|
||||
|
||||
meta = {
|
||||
description = "Nidus Sync";
|
||||
homepage = "https://github.com/Gleipnir-Technology/nidus-sync";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue