nixpkgs-suyu/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix
R. RyanTM 97c1e3069b checkSSLCert: 1.76.0 -> 1.78.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/check_ssl_cert/versions
2018-11-19 17:52:18 -08:00

28 lines
778 B
Nix

{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }:
stdenv.mkDerivation rec {
name = "check_ssl_cert-${version}";
version = "1.78.0";
src = fetchFromGitHub {
owner = "matteocorti";
repo = "check_ssl_cert";
rev = "v${version}";
sha256 = "0s03625xzb30f6dbn34zkp0wcajzlir7wzkgi9rmms76gk4jqq6h";
};
nativeBuildInputs = [ makeWrapper ];
makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
postInstall = ''
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${stdenv.lib.makeBinPath [ openssl file which curl ]}"
'';
meta = with stdenv.lib; {
description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
license = licenses.gpl3;
platforms = platforms.all;
};
}