gotify-cli: Add version and commit to ldflags
This commit is contained in:
parent
1435f5be15
commit
b027fc3df8
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue