1
0
Fork 1
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:
Maximilian Bosch 2021-07-26 14:19:57 +02:00
parent b9a3c230bd
commit dadbcdfa3e
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

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