3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/monitoring/prometheus/snmp-exporter.nix

28 lines
689 B
Nix
Raw Normal View History

2019-12-21 22:44:50 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub, net-snmp }:
buildGoPackage rec {
pname = "snmp_exporter";
2020-05-26 20:10:44 +01:00
version = "0.18.0";
goPackagePath = "github.com/prometheus/snmp_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "snmp_exporter";
rev = "v${version}";
2020-05-26 20:10:44 +01:00
sha256 = "1zdkb036zy2sw1drlp2m2z1yb7857d2y3yn2y3l0a1kkd4zcqkk4";
};
2019-12-21 22:44:50 +00:00
buildInputs = [ net-snmp ];
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 willibutz Frostman ];
platforms = platforms.unix;
};
}