diff --git a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix index 3d811c394cf9..cdfd8ab9beeb 100644 --- a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix +++ b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }: +{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl, fetchpatch }: stdenv.mkDerivation rec { name = "check_ssl_cert-${version}"; @@ -11,10 +11,13 @@ stdenv.mkDerivation rec { sha256 = "1jkwii45hynil1jail9gmz4bak066rdi8zfcczicjsa6npbz50w4"; }; - postPatch = '' - substituteInPlace Makefile \ - --replace 'YEAR=`date +"%Y"`' 'YEAR=2018' - ''; + patches = [ + # https://github.com/matteocorti/check_ssl_cert/pull/114 + (fetchpatch { + url = "https://github.com/matteocorti/check_ssl_cert/commit/2b7aad583d507a70605dd44d918739a65b267bfd.patch"; + sha256 = "1jk872jgm6k3qc1ks1h3v6p804spjlnxcj2wc8v0hkmwfwiwd2k4"; + }) + ]; nativeBuildInputs = [ makeWrapper ];