From b027fc3df836c1be8a8e396678640432adce5982 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 13 Sep 2020 00:41:49 +0300 Subject: [PATCH] gotify-cli: Add version and commit to ldflags --- pkgs/tools/misc/gotify-cli/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/gotify-cli/default.nix b/pkgs/tools/misc/gotify-cli/default.nix index 9e9f3c847822..8d81713e7b1b 100644 --- a/pkgs/tools/misc/gotify-cli/default.nix +++ b/pkgs/tools/misc/gotify-cli/default.nix @@ -19,6 +19,10 @@ buildGoModule rec { mv $out/bin/cli $out/bin/gotify ''; + buildFlagsArray = [ + "-ldflags=-X main.Version=${version} -X main.Commit=${version} -X main.BuildDate=1970-01-01" + ]; + meta = with lib; { license = licenses.mit; homepage = "https://github.com/gotify/cli";