Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
759 B
Nix
38 lines
759 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
net-snmp,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "snmp_exporter";
|
|
version = "0.29.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "snmp_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-eM3R4wNsBeGscaTzqdrj9ceiKFjRF3F78SWDamNMEYM=";
|
|
};
|
|
|
|
vendorHash = "sha256-C5iY3hBqepxLkGwPDVmnDf/ugF4h5y8scEomU9mkMEM=";
|
|
|
|
buildInputs = [ net-snmp ];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
|
|
|
|
meta = with lib; {
|
|
description = "SNMP Exporter for Prometheus";
|
|
homepage = "https://github.com/prometheus/snmp_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
oida
|
|
Frostman
|
|
];
|
|
};
|
|
}
|