nixpkgs/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix
Ryan Mulligan 0a931ed0c4 checkSSLCert: 1.51.0 -> 1.64.0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/check_ssl_cert/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 1.64.0 with grep in /nix/store/yiphzx29lcf6zx02g4bh1p80pappzw6f-check_ssl_cert-1.64.0
- directory tree listing: https://gist.github.com/37591ae2c040336904beb8059082afdc
2018-03-30 10:18:53 +01:00

28 lines
778 B
Nix

{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }:
stdenv.mkDerivation rec {
name = "check_ssl_cert-${version}";
version = "1.64.0";
src = fetchFromGitHub {
owner = "matteocorti";
repo = "check_ssl_cert";
rev = "v${version}";
sha256 = "0pq297sbz9hzcaccnnsfmra0bac81cki9xfrnb22a1hgfhqjxy5r";
};
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;
};
}