1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/monitoring/prometheus/snmp-exporter.nix
2018-05-01 15:36:19 +02:00

28 lines
696 B
Nix

{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, net_snmp }:
buildGoPackage rec {
name = "snmp_exporter-${version}";
version = "0.9.0";
goPackagePath = "github.com/prometheus/snmp_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "snmp_exporter";
rev = "v${version}";
sha256 = "081ah4zyy53plhm6znwrx55phm2ysxzyx7d4hm8zzrv5r967rgl1";
};
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;
};
}