uwimap: Avoid reference to OpenSSL headers

Default value of SSLCERTS was ${openssl.dev}/certs.
Adjust SSLLIB as well for good measure.
This commit is contained in:
Tuomas Tynkkynen 2015-10-15 22:02:04 +03:00 committed by Vladimír Čunát
parent 934a6ddef6
commit d100218bd2

View file

@ -18,8 +18,9 @@ stdenv.mkDerivation {
++ stdenv.lib.optional (!stdenv.isDarwin) pam;
patchPhase = ''
sed -i -e s,/usr/local/ssl,${openssl}, \
src/osdep/unix/Makefile
sed -i src/osdep/unix/Makefile -e 's,/usr/local/ssl,${openssl},'
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,'
'';
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin