@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "check_ssl_cert-${version}";
5+ version = "1.51.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "matteocorti";
9+ repo = "check_ssl_cert";
10+ rev = "v${version}";
11+ sha256 = "07g4dhwp1plzmlqazapn0s0hysmf3kk0pa2x0wns482xm1v1mr05";
12+ };
13+
14+ nativeBuildInputs = [ makeWrapper ];
15+
16+ makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
17+
18+ postInstall = ''
19+ wrapProgram $out/bin/check_ssl_cert \
20+ --prefix PATH : "${stdenv.lib.makeBinPath [ openssl file which curl ]}"
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
25+ license = licenses.gpl3;
26+ platforms = platforms.all;
27+ };
28+}