about summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-01-13 06:10:19 +0000
committerJörg Thalheim <joerg@thalheim.io>2019-01-13 06:12:50 +0000
commit532c8f954cb444fe983c746c2590916d856e7341 (patch)
treeab96dd8391aed4cc220d2cb8a5cb77cd4ffc3bb7 /pkgs/servers/monitoring
parent3c33db1e2c0cd3aa21931c794b854d93e78aae2b (diff)
downloadnixlib-532c8f954cb444fe983c746c2590916d856e7341.tar
nixlib-532c8f954cb444fe983c746c2590916d856e7341.tar.gz
nixlib-532c8f954cb444fe983c746c2590916d856e7341.tar.bz2
nixlib-532c8f954cb444fe983c746c2590916d856e7341.tar.lz
nixlib-532c8f954cb444fe983c746c2590916d856e7341.tar.xz
nixlib-532c8f954cb444fe983c746c2590916d856e7341.tar.zst
nixlib-532c8f954cb444fe983c746c2590916d856e7341.zip
check_ssl_cert: update non-determinism patch
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix13
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 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 ];