Skip to content

Commit

Permalink
Merge pull request #97865 from doronbehar/pkg/gotify-client
Browse files Browse the repository at this point in the history
gotify-cli: Add version and commit to ldflags
  • Loading branch information
Ma27 committed Sep 14, 2020
2 parents 097cf62 + b027fc3 commit f73b109
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/misc/gotify-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f73b109

Please sign in to comment.