make wget build on darwin

This commit is contained in:
Eric Seidel 2015-02-04 00:09:13 -08:00
parent ad60eaedf1
commit 9a1817c778
1 changed files with 5 additions and 2 deletions

View File

@ -21,19 +21,22 @@ stdenv.mkDerivation rec {
do do
sed -i "$i" -e's/localhost/127.0.0.1/g' sed -i "$i" -e's/localhost/127.0.0.1/g'
done done
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export LIBS="-liconv -lintl"
''; '';
nativeBuildInputs = [ gettext ]; nativeBuildInputs = [ gettext ];
buildInputs = [ libidn ] buildInputs = [ libidn ]
++ stdenv.lib.optionals doCheck [ perl perlPackages.IOSocketSSL LWP python3 ] ++ stdenv.lib.optionals doCheck [ perl perlPackages.IOSocketSSL LWP python3 ]
++ stdenv.lib.optional (gnutls != null) gnutls; ++ stdenv.lib.optional (gnutls != null) gnutls
++ stdenv.lib.optional stdenv.isDarwin perl;
configureFlags = configureFlags =
if gnutls != null if gnutls != null
then "--with-ssl=gnutls" then "--with-ssl=gnutls"
else "--without-ssl"; else "--without-ssl";
doCheck = (perl != null && python3 != null); doCheck = (perl != null && python3 != null && !stdenv.isDarwin);
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Tool for retrieving files using HTTP, HTTPS, and FTP"; description = "Tool for retrieving files using HTTP, HTTPS, and FTP";