diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2019-01-13 06:10:19 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-01-13 06:12:50 +0000 |
commit | 532c8f954cb444fe983c746c2590916d856e7341 (patch) | |
tree | ab96dd8391aed4cc220d2cb8a5cb77cd4ffc3bb7 /pkgs/servers/monitoring/nagios | |
parent | 3c33db1e2c0cd3aa21931c794b854d93e78aae2b (diff) |
check_ssl_cert: update non-determinism patch
Diffstat (limited to 'pkgs/servers/monitoring/nagios')
-rw-r--r-- | pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix index 3d811c394cf9a..cdfd8ab9beeb6 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 ]; |