mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
Merge pull request #328406 from herbetom/yanic-add-version-var
yanic: set version variable during build
This commit is contained in:
commit
f22436e2b4
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user