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