19 stdenv.mkDerivation rec {
20 pname = "check_ssl_cert";
23 src = fetchFromGitHub {
24 owner = "matteocorti";
25 repo = "check_ssl_cert";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-4/vrJ3G45kEg77IbLlWqQYpYYnqMxW3lr9tPGbv5Qno=";
30 nativeBuildInputs = [ makeWrapper ];
34 "MANDIR=$(out)/share/man"
38 wrapProgram $out/bin/check_ssl_cert \
43 bind # host and dig binary
44 coreutils # date and timeout binary
53 ++ lib.optional stdenv.hostPlatform.isLinux iproute2
59 changelog = "https://github.com/matteocorti/check_ssl_cert/releases/tag/v${version}";
60 description = "Nagios plugin to check the CA and validity of an X.509 certificate";
61 homepage = "https://github.com/matteocorti/check_ssl_cert";
62 license = lib.licenses.gpl3Plus;
63 mainProgram = "check_ssl_cert";
64 maintainers = with lib.maintainers; [ fab ];
65 platforms = lib.platforms.all;