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
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
openbsd_snmp3_check,
|
|
python3Packages,
|
|
testers,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "openbsd_snmp3_check";
|
|
version = "0.55";
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexander-naumov";
|
|
repo = "openbsd_snmp3_check";
|
|
rev = "v${version}";
|
|
hash = "sha256-qDYANMvQU72f9wz8os7S1PfBH08AAqhtWLHVuSmkub4=";
|
|
};
|
|
|
|
postInstall = ''
|
|
install -Dm755 openbsd_snmp3.py $out/bin/openbsd_snmp3.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
package = openbsd_snmp3_check;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/alexander-naumov/openbsd_snmp3_check/releases/tag/v${version}";
|
|
description = "SNMP v3 check for OpenBSD systems state monitoring";
|
|
homepage = "https://github.com/alexander-naumov/openbsd_snmp3_check";
|
|
license = with lib.licenses; [ bsd3 ];
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ jwillikers ];
|
|
mainProgram = "openbsd_snmp3.py";
|
|
};
|
|
}
|