2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, net_snmp }:
|
2016-10-05 15:30:18 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "snmp_exporter-${version}";
|
2018-09-15 01:02:34 +01:00
|
|
|
version = "0.13.0";
|
2016-10-05 15:30:18 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/snmp_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2018-05-01 13:55:24 +01:00
|
|
|
rev = "v${version}";
|
2018-09-15 01:02:34 +01:00
|
|
|
sha256 = "071v9qqhp2hcbgml94dm1l212qi18by88r9755npq9ycrsmawkll";
|
2016-10-05 15:30:18 +01:00
|
|
|
};
|
|
|
|
|
2017-04-11 17:02:23 +01:00
|
|
|
buildInputs = [ net_snmp ];
|
|
|
|
|
2016-10-05 15:30:18 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SNMP Exporter for Prometheus";
|
|
|
|
homepage = https://github.com/prometheus/snmp_exporter;
|
|
|
|
license = licenses.asl20;
|
2018-05-01 13:55:24 +01:00
|
|
|
maintainers = with maintainers; [ oida willibutz ];
|
2016-10-05 15:30:18 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|