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 }:
|
{ 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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue