97c1e3069b
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
28 lines
778 B
Nix
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;
|
|
};
|
|
}
|