summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-02-14 01:30:22 +0100
committerRobin Gloster <mail@glob.in>2019-07-29 21:25:10 +0200
commit690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5 (patch)
treedc0fc9c4074aa785c1859d4bb917095d6c4c938d
parent2d6f0cb1764e24f186ff52002aedf230b6496af5 (diff)
downloadnixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar.gz
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar.bz2
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar.lz
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar.xz
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.tar.zst
nixpkgs-690aaf4429fa6ebff06cb4af29ac1e7e4ea17ef5.zip
uwimap: add patch to build with openssl 1.1.0
-rw-r--r--pkgs/tools/networking/uwimap/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/networking/uwimap/default.nix b/pkgs/tools/networking/uwimap/default.nix
index 7cb489a3f21..ad9eea0eced 100644
--- a/pkgs/tools/networking/uwimap/default.nix
+++ b/pkgs/tools/networking/uwimap/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, pam, openssl}:
+{ stdenv, fetchurl, fetchpatch, pam, openssl }:
 
 stdenv.mkDerivation {
   name = "uw-imap-2007f";
@@ -19,7 +19,12 @@ stdenv.mkDerivation {
   buildInputs = [ openssl ]
     ++ stdenv.lib.optional (!stdenv.isDarwin) pam;
 
-  patchPhase = ''
+  patches = [ (fetchpatch {
+    url = "https://anonscm.debian.org/cgit/collab-maint/uw-imap.git/plain/debian/patches/1006_openssl1.1_autoverify.patch?id=b4df81d246a6cdbfd035c21f43e844effda3582b";
+    sha256 = "09xb58awvkhzmmjhrkqgijzgv7ia381ablf0y7i1rvhcqkb5wga7";
+  }) ];
+
+  postPatch = ''
     sed -i src/osdep/unix/Makefile -e 's,/usr/local/ssl,${openssl.dev},'
     sed -i src/osdep/unix/Makefile -e 's,^SSLCERTS=.*,SSLCERTS=/etc/ssl/certs,'
     sed -i src/osdep/unix/Makefile -e 's,^SSLLIB=.*,SSLLIB=${openssl.out}/lib,'