check_ssl_cert: init at 1.51.0 (#28069)

This commit is contained in:
Marius Metzger 2017-08-09 12:41:15 +02:00 committed by Joachim Schiele
parent 345b35c48a
commit 1db52734ad
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ pkgs, openssl }:
#with import <nixpkgs> {};
with pkgs;
stdenv.mkDerivation rec {
name = "check_ssl_cert-${version}";
version = "1.51.0";
src = fetchgit {
url = https://github.com/matteocorti/check_ssl_cert;
rev = "4e31a82008a48cd6efb82914e0bb1e136b339a31"; # v1.51.0
sha256 = "1x1lcxxgzvjznn1iyla4hmc02c0vqdbzvd8xj61niknm02q07lcf";
};
buildInputs = [ makeWrapper file ];
#nativeBuildInputs = [ makeWrapper ];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/man
cp check_ssl_cert $out/bin
cp check_ssl_cert.1 $out/man1
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${openssl}/bin:${file}/bin"
'';
meta = {
description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
license = stdenv.lib.licenses.gpl3;
};
}

View File

@ -11360,6 +11360,8 @@ with pkgs;
munin = callPackage ../servers/monitoring/munin { };
nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { };
checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };
neo4j = callPackage ../servers/nosql/neo4j { };