@@ -1,27 +1,32 @@
1−{ lib, stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl, fetchpatch }:
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, file
5+, openssl
6+, makeWrapper
7+, which
8+, curl
9+}:
210
311stdenv.mkDerivation rec {
412 pname = "check_ssl_cert";
5− version = "1.80.0";
13+ version = "2.19.0";
614
715 src = fetchFromGitHub {
816 owner = "matteocorti";
917 repo = "check_ssl_cert";
1018 rev = "v${version}";
11− sha256 = "1jkwii45hynil1jail9gmz4bak066rdi8zfcczicjsa6npbz50w4";
19+ sha256 = "sha256-HNvchmP975k971EYpDFCqxx8w1Oq/IIEy+r1il0PjmQ=";
1220 };
1321
14− patches = [
15− # https://github.com/matteocorti/check_ssl_cert/pull/114
16− (fetchpatch {
17− url = "https://github.com/matteocorti/check_ssl_cert/commit/2b7aad583d507a70605dd44d918739a65b267bfd.patch";
18− sha256 = "1jk872jgm6k3qc1ks1h3v6p804spjlnxcj2wc8v0hkmwfwiwd2k4";
19− })
22+ nativeBuildInputs = [
23+ makeWrapper
2024 ];
2125
22− nativeBuildInputs = [ makeWrapper ];
23−
24− makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
26+ makeFlags = [
27+ "DESTDIR=$(out)/bin"
28+ "MANDIR=$(out)/share/man"
29+ ];
2530
2631 postInstall = ''
2732 wrapProgram $out/bin/check_ssl_cert \
@@ -29,8 +34,10 @@ stdenv.mkDerivation rec {
2934 '';
3035
3136 meta = with lib; {
32− description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
33− license = licenses.gpl3;
37+ description = "Nagios plugin to check the CA and validity of an X.509 certificate";
38+ homepage = "https://github.com/matteocorti/check_ssl_cert";
39+ license = licenses.gpl3Plus;
40+ maintainers = with maintainers; [ ];
3441 platforms = platforms.all;
3542 };
3643}