2017-04-11 18:02:23 +02:00
|
|
|
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, net_snmp }:
|
2016-10-05 16:30:18 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "snmp_exporter-${version}";
|
2018-05-01 14:55:24 +02:00
|
|
|
version = "0.9.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}";
|
|
|
|
sha256 = "081ah4zyy53plhm6znwrx55phm2ysxzyx7d4hm8zzrv5r967rgl1";
|
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;
|
|
|
|
};
|
|
|
|
}
|