From 532c8f954cb444fe983c746c2590916d856e7341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 13 Jan 2019 06:10:19 +0000 Subject: [PATCH] check_ssl_cert: update non-determinism patch --- .../monitoring/nagios/plugins/check_ssl_cert.nix | 13 ++++++++----- 1 file 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 3d811c394cf..cdfd8ab9bee 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 ];