summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pr/prometheus-haproxy-exporter/package.nix
blob: cd1df13263f3f5c7a761f06af9d8352995c41df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "haproxy_exporter";
  version = "0.15.0";

  src = fetchFromGitHub {
    owner = "prometheus";
    repo = "haproxy_exporter";
    rev = "v${version}";
    sha256 = "sha256-hpZnMvHAAEbvzASK3OgfG34AhPkCdRM7eOm15PRemkA=";
  };

  vendorHash = "sha256-s9UVtV8N2SJ1ik864P6p2hPXJ2jstFY/XnWt9fuCDo0=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "HAProxy Exporter for the Prometheus monitoring system";
    mainProgram = "haproxy_exporter";
    homepage = "https://github.com/prometheus/haproxy_exporter";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ benley ];
  };
}