biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / pr / prometheus-frr-exporter / package.nix
blob890107dd07f51ee8318fd862ed652b3e29214979
1 { lib, buildGoModule, fetchFromGitHub }:
3 let
4   version = "1.3.1";
5   src = fetchFromGitHub {
6     owner = "tynany";
7     repo = "frr_exporter";
8     rev = "v${version}";
9     hash = "sha256-SDtI7CvCeuRL1cXNsWGCl/zupVbgMxv5bzYYqJWTrMw=";
10   };
12 buildGoModule {
13   pname = "prometheus-frr-exporter";
14   vendorHash = "sha256-G+S4XORrg0AEKoAqYdmg+uW6x0Ub5diQTyQGY0iebHg=";
15   inherit src version;
17   ldflags = [
18     "-X github.com/prometheus/common/version.Version=${version}"
19     "-X github.com/prometheus/common/version.Revision=${src.rev}"
20     "-X github.com/prometheus/common/version.Branch=unknown"
21   ];
23   meta = with lib; {
24     description = "Prometheus exporter for FRR version 3.0+";
25     longDescription = ''
26       Prometheus exporter for FRR version 3.0+ that collects metrics from the
27       FRR Unix sockets and exposes them via HTTP, ready for collecting by
28       Prometheus.
29     '';
30     homepage = "https://github.com/tynany/frr_exporter";
31     license = licenses.mit;
32     maintainers = with maintainers; [ javaes ];
33     mainProgram = "frr_exporter";
34   };