-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6a42bf
commit 4d0b3e4
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
pkgs/servers/monitoring/nagios-plugins/openbsd_snmp3_check/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
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 -D --mode=0755 openbsd_snmp3.py $out/bin/openbsd_snmp3.py | ||
''; | ||
|
||
passthru = { | ||
updateScript = nix-update-script { }; | ||
tests.version = testers.testVersion { | ||
package = openbsd_snmp3_check; | ||
}; | ||
}; | ||
|
||
meta = with lib; { | ||
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 licenses; [ bsd3 ]; | ||
platforms = platforms.unix; | ||
maintainers = with maintainers; [ jwillikers ]; | ||
mainProgram = "openbsd_snmp3.py"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters