2017-04-11 16:02:23 +00:00
|
|
|
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, net_snmp }:
|
2016-10-05 14:30:18 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "snmp_exporter-${version}";
|
2017-04-11 16:02:23 +00:00
|
|
|
version = "0.3.0";
|
2016-10-05 14:30:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/snmp_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2017-04-11 16:02:23 +00:00
|
|
|
sha256 = "1cklsi3cpalmnp0qjkgb7xbgbkr014hk2z54gfynzvzqjmsbxk6a";
|
2016-10-05 14:30:18 +00:00
|
|
|
};
|
|
|
|
|
2017-04-11 16:02:23 +00:00
|
|
|
buildInputs = [ net_snmp ];
|
|
|
|
|
2016-10-05 14:30:18 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SNMP Exporter for Prometheus";
|
|
|
|
homepage = https://github.com/prometheus/snmp_exporter;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ oida ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|