nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "consul_exporter";
9 version = "0.13.0";
10
11 src = fetchFromGitHub {
12 owner = "prometheus";
13 repo = "consul_exporter";
14 tag = "v${version}";
15 hash = "sha256-2X1nJIUwp7kqqz/D3x4bq6vHg1N8zC9AWCn02qsAyAQ=";
16 };
17
18 vendorHash = "sha256-z9+WrJDgjQYf4G90sdqY+SOGJa/r5Ie9GFVrihbaGGU=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = {
26 description = "Prometheus exporter for Consul metrics";
27 mainProgram = "consul_exporter";
28 homepage = "https://github.com/prometheus/consul_exporter";
29 changelog = "https://github.com/prometheus/consul_exporter/releases/tag/v${version}";
30 license = lib.licenses.asl20;
31 maintainers = with lib.maintainers; [ hectorj ];
32 };
33}