2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, net_snmp }:
|
2016-10-05 16:30:18 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "snmp_exporter-${version}";
|
2018-09-15 02:02:34 +02:00
|
|
|
version = "0.13.0";
|
2016-10-05 16:30:18 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/snmp_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2018-05-01 14:55:24 +02:00
|
|
|
rev = "v${version}";
|
2018-09-15 02:02:34 +02:00
|
|
|
sha256 = "071v9qqhp2hcbgml94dm1l212qi18by88r9755npq9ycrsmawkll";
|
2016-10-05 16:30:18 +02:00
|
|
|
};
|
|
|
|
|
2017-04-11 18:02:23 +02:00
|
|
|
buildInputs = [ net_snmp ];
|
|
|
|
|
2016-10-05 16:30:18 +02: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 14:55:24 +02:00
|
|
|
maintainers = with maintainers; [ oida willibutz ];
|
2016-10-05 16:30:18 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|