mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
Merge pull request #291368 from Ma27/statsd-exporter-buildinfo
prometheus-statsd-exporter: add build info
This commit is contained in:
commit
5e8530cbc0
@ -14,6 +14,18 @@ buildGoModule rec {
|
|||||||
hash = "sha256-C7+4v40T667KJHEQ3ebLDg2wJNrxD/nossfT6rMlER8=";
|
hash = "sha256-C7+4v40T667KJHEQ3ebLDg2wJNrxD/nossfT6rMlER8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ldflags =
|
||||||
|
let
|
||||||
|
t = "github.com/prometheus/common/version";
|
||||||
|
in
|
||||||
|
[ "-s" "-w"
|
||||||
|
"-X ${t}.Version=${version}"
|
||||||
|
"-X ${t}.Revision=unknown"
|
||||||
|
"-X ${t}.Branch=unknown"
|
||||||
|
"-X ${t}.BuildUser=nix@nixpkgs"
|
||||||
|
"-X ${t}.BuildDate=unknown"
|
||||||
|
];
|
||||||
|
|
||||||
vendorHash = "sha256-scBpRZeECgAtpu9lnkIk1I2c8UmAkEL8LYNPUeUNYto=";
|
vendorHash = "sha256-scBpRZeECgAtpu9lnkIk1I2c8UmAkEL8LYNPUeUNYto=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user