squid: fix build with openssl 1.1

This commit is contained in:
Robin Gloster 2019-08-22 15:31:32 +02:00
parent 2596a81743
commit c89e5439a1
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, perl, openldap, pam, db, cyrus_sasl, libcap
, expat, libxml2, openssl }:
, expat, libxml2, openssl, pkgconfig
}:
stdenv.mkDerivation rec {
name = "squid-4.8";
@ -9,14 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "0432m0ix046rkja7r7qpydgsm2kf1w393xym15nx6h9kv4jb7kbq";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
perl openldap db cyrus_sasl expat libxml2 openssl
] ++ stdenv.lib.optionals stdenv.isLinux [ libcap pam ];
prePatch = ''
substituteInPlace configure --replace "/usr/local/include/libxml2" "${libxml2.dev}/include/libxml2"
'';
configureFlags = [
"--enable-ipv6"
"--disable-strict-error-checking"