nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "haproxy_exporter";
9 version = "0.15.0";
10
11 src = fetchFromGitHub {
12 owner = "prometheus";
13 repo = "haproxy_exporter";
14 rev = "v${version}";
15 sha256 = "sha256-hpZnMvHAAEbvzASK3OgfG34AhPkCdRM7eOm15PRemkA=";
16 };
17
18 vendorHash = "sha256-s9UVtV8N2SJ1ik864P6p2hPXJ2jstFY/XnWt9fuCDo0=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = {
26 description = "HAProxy Exporter for the Prometheus monitoring system";
27 mainProgram = "haproxy_exporter";
28 homepage = "https://github.com/prometheus/haproxy_exporter";
29 license = lib.licenses.asl20;
30 maintainers = with lib.maintainers; [ benley ];
31 };
32}