1 { lib, buildGoModule, fetchFromGitHub, net-snmp, nixosTests }:
4 pname = "snmp_exporter";
7 src = fetchFromGitHub {
9 repo = "snmp_exporter";
11 sha256 = "sha256-6UTvzcN0BB4uLfyZxr8CkmlMAjggYRV/EmQPRD7ZqmY=";
14 vendorHash = "sha256-0WGiVM4HTgcVkCxfjW1c+z1wlf/ay5BXZXuGRPS4guc=";
16 buildInputs = [ net-snmp ];
20 passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
23 description = "SNMP Exporter for Prometheus";
24 homepage = "https://github.com/prometheus/snmp_exporter";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ oida Frostman ];