biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / consul-exporter.nix
blob4cc241af7c65470dd8815f94a58969da620ad168
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "consul_exporter";
8   version = "0.11.0";
10   src = fetchFromGitHub {
11     owner = "prometheus";
12     repo = "consul_exporter";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-3aPLpTV+xuotpBYmRDfU3ewRRlmf7VUdh/u9/SLQDeE=";
15   };
17   vendorHash = "sha256-fsST29HGwJVLVSoAr8tNukW81iJtpb/oypwp5cH7oLQ=";
19   ldflags = [
20     "-s"
21     "-w"
22   ];
24   meta = with lib; {
25     description = "Prometheus exporter for Consul metrics";
26     mainProgram = "consul_exporter";
27     homepage = "https://github.com/prometheus/consul_exporter";
28     changelog = "https://github.com/prometheus/consul_exporter/releases/tag/v${version}";
29     license = licenses.asl20;
30     maintainers = with maintainers; [ hectorj ];
31   };