nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 746 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 net-snmp, 6 nixosTests, 7}: 8 9buildGoModule rec { 10 pname = "snmp_exporter"; 11 version = "0.30.1"; 12 13 src = fetchFromGitHub { 14 owner = "prometheus"; 15 repo = "snmp_exporter"; 16 rev = "v${version}"; 17 sha256 = "sha256-vLgqcqjnUvXYlxVyybDvra9YY5Im17L4I3LLf77tR8M="; 18 }; 19 20 vendorHash = "sha256-3Rjt91Xb0Y5OCkwGQVQLZ6zK0+xVk8XNrGfax6zZJ7o="; 21 22 buildInputs = [ net-snmp ]; 23 24 doCheck = true; 25 26 passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; }; 27 28 meta = { 29 description = "SNMP Exporter for Prometheus"; 30 homepage = "https://github.com/prometheus/snmp_exporter"; 31 license = lib.licenses.asl20; 32 maintainers = with lib.maintainers; [ 33 Frostman 34 ]; 35 }; 36}