@@ -33,8 +33,6 @@ stdenv.mkDerivation rec {
3333 preConfigure = ''
3434 sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
3535 rm src/tool_hugehelp.c
36− '' ++ stdenv.lib.optionalString stdenv.isDarwin '';
37− export DYLD_LIBRARY_PATH=${zlib}/lib:$DYLD_LIBRARY_PATH
3836 '';
3937
4038 # make curl honor CURL_CA_BUNDLE & SSL_CERT_FILE
@@ -43,19 +41,12 @@ stdenv.mkDerivation rec {
4341 '';
4442
4543 configureFlags = [
46− ( if zlibSupport then "--with-zlib=${zlib}" else "--without-zlib" )
4744 ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
4845 ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
4946 ]
5047 ++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
5148 ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
5249
53− installPhase = stdenv.lib.optionalString stdenv.isDarwin ''
54− for prog in $out/bin/*; do
55− wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${zlib}/lib"
56− done
57− '';
58−
5950 CXX = "g++";
6051 CXXCPP = "g++ -E";
6152