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}";
|
2017-04-11 18:02:23 +02:00
|
|
|
version = "0.3.0";
|
2016-10-05 16:30:18 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/snmp_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2017-04-11 18:02:23 +02:00
|
|
|
sha256 = "1cklsi3cpalmnp0qjkgb7xbgbkr014hk2z54gfynzvzqjmsbxk6a";
|
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;
|
|
|
|
maintainers = with maintainers; [ oida ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|