mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
prometheus-mysqld-exporter: add version info
This commit is contained in:
parent
b9a3c230bd
commit
dadbcdfa3e
|
@ -14,6 +14,15 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "19785rfzlx8h0h8vmg0ghd40h3p4y6ikhgf8rd2qfj5f6qxfhrgv";
|
||||
|
||||
buildFlagsArray = let t = "github.com/prometheus/common/version"; in ''
|
||||
-ldflags=
|
||||
-s -w -X ${t}.Version=${version}
|
||||
-X ${t}.Revision=${rev}
|
||||
-X ${t}.Branch=unknown
|
||||
-X ${t}.BuildUser=nix@nixpkgs
|
||||
-X ${t}.BuildDate=unknown
|
||||
'';
|
||||
|
||||
# skips tests with external dependencies, e.g. on mysqld
|
||||
checkFlags = [ "-short" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue