Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.4 KiB
Nix

{
bc,
bind,
coreutils,
curl,
fetchFromGitHub,
file,
iproute2,
lib,
makeWrapper,
netcat-gnu,
nmap,
openssl,
python3,
stdenv,
which,
}:
stdenv.mkDerivation rec {
pname = "check_ssl_cert";
version = "2.94.0";
src = fetchFromGitHub {
owner = "matteocorti";
repo = "check_ssl_cert";
tag = "v${version}";
hash = "sha256-t1bgW8a4g289nn34c4xnIyus7aAkZUII+/wXEIEmD2c=";
};
nativeBuildInputs = [ makeWrapper ];
makeFlags = [
"DESTDIR=$(out)/bin"
"MANDIR=$(out)/share/man"
];
postInstall = ''
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${
lib.makeBinPath (
[
bc
bind # host and dig binary
coreutils # date and timeout binary
curl
file
netcat-gnu
nmap
openssl
python3
which
]
++ lib.optional stdenv.hostPlatform.isLinux iproute2
)
}"
'';
meta = {
changelog = "https://github.com/matteocorti/check_ssl_cert/releases/tag/v${version}";
description = "Nagios plugin to check the CA and validity of an X.509 certificate";
homepage = "https://github.com/matteocorti/check_ssl_cert";
license = lib.licenses.gpl3Plus;
mainProgram = "check_ssl_cert";
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.all;
};
}