Merge pull request #328406 from herbetom/yanic-add-version-var

yanic: set version variable during build
This commit is contained in:
lassulus 2024-07-20 16:07:49 +02:00 committed by GitHub
commit f22436e2b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,11 @@ buildGoModule rec {
vendorHash = "sha256-6UiiajKLzW5e7y0F6GMYDZP6xTyOiccLIKlwvOY7LRo=";
ldflags = [ "-s" "-w" ];
ldflags = [
"-X github.com/FreifunkBremen/yanic/cmd.VERSION=${version}"
"-s"
"-w"
];
nativeBuildInputs = [ installShellFiles ];