nixpkgs/pkgs/servers/monitoring/prometheus/consul-exporter.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
772 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "consul_exporter";
version = "0.11.0";
src = fetchFromGitHub {
owner = "prometheus";
repo = "consul_exporter";
rev = "refs/tags/v${version}";
hash = "sha256-3aPLpTV+xuotpBYmRDfU3ewRRlmf7VUdh/u9/SLQDeE=";
};
vendorHash = "sha256-fsST29HGwJVLVSoAr8tNukW81iJtpb/oypwp5cH7oLQ=";
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "Prometheus exporter for Consul metrics";
mainProgram = "consul_exporter";
homepage = "https://github.com/prometheus/consul_exporter";
changelog = "https://github.com/prometheus/consul_exporter/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ hectorj ];
};
}