|
|
|
@ -1,18 +1,20 @@ |
|
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }: |
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }: |
|
|
|
|
|
|
|
|
|
buildGoPackage rec { |
|
|
|
|
buildGoModule rec { |
|
|
|
|
pname = "haproxy_exporter"; |
|
|
|
|
version = "0.12.0"; |
|
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/haproxy_exporter"; |
|
|
|
|
version = "0.13.0"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
owner = "prometheus"; |
|
|
|
|
repo = "haproxy_exporter"; |
|
|
|
|
sha256 = "09aqm2zqimn6w10p1nhnpjcigm299b31xfrq8ma0d7z4v9p2y9dn"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "sha256-F0yYUIKTIGyhzL0QwmioQYnWBb0GeFOhBwL3IqDKoQA="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-iJ2doxsLqTitsKJg3PUFLzEtLlP5QckSdFZkXX3ALIE="; |
|
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system"; |
|
|
|
|
homepage = "https://github.com/prometheus/haproxy_exporter"; |
|
|
|
|