mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
prometheus-nginx-exporter: fix build info
This commit is contained in:
parent
67bef9e807
commit
2aa2b0c423
@ -13,7 +13,14 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-qmyqAbwQYgUFFQwCLakQGta2XMGCbCOvCB93S8/TWIs=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
ldflags = let t = "github.com/prometheus/common/version"; in [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X ${t}.Version=${version}"
|
||||
"-X ${t}.Branch=unknown"
|
||||
"-X ${t}.BuildUser=nix@nixpkgs"
|
||||
"-X ${t}.BuildDate=unknown"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginx; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user