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

27 lines
660 B
Nix

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