Merge pull request #97865 from doronbehar/pkg/gotify-client

gotify-cli: Add version and commit to ldflags
This commit is contained in:
Maximilian Bosch 2020-09-14 12:54:06 +02:00 committed by GitHub
commit f73b1097bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";