nixpkgs/pkgs/servers/monitoring/plugins/openvpn.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

24 lines
561 B
Nix

{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "check-openvpn";
version = "0.0.1";
src = fetchFromGitHub {
owner = "liquidat";
repo = "nagios-icinga-openvpn";
rev = version;
sha256 = "1vz3p7nckc5k5f06nm1xfzpykhyndh2dzyagmifrzg5k478p1lpm";
};
# no tests
doCheck = false;
meta = with lib; {
description = "A nagios/icinga/sensu check plugin for OpenVPN";
mainProgram = "check_openvpn";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}