1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/servers/monitoring/prometheus/snmp-exporter.nix
2019-09-05 22:33:39 +01:00

28 lines
678 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, net_snmp }:
buildGoPackage rec {
pname = "snmp_exporter";
version = "0.15.0";
goPackagePath = "github.com/prometheus/snmp_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "snmp_exporter";
rev = "v${version}";
sha256 = "1cnz1wapxs3fkghzy6v90s56vd0ngynypyapcpbmx5y66rlpdxx6";
};
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 ];
platforms = platforms.unix;
};
}