mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge branch 'master' of git://github.com/gridaphobe/nixpkgs
make wget build on darwin
This commit is contained in:
commit
c1aefe5d7e
1 changed files with 5 additions and 2 deletions
|
@ -21,19 +21,22 @@ stdenv.mkDerivation rec {
|
|||
do
|
||||
sed -i "$i" -e's/localhost/127.0.0.1/g'
|
||||
done
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
export LIBS="-liconv -lintl"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ gettext ];
|
||||
buildInputs = [ libidn ]
|
||||
++ 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 =
|
||||
if gnutls != null
|
||||
then "--with-ssl=gnutls"
|
||||
else "--without-ssl";
|
||||
|
||||
doCheck = (perl != null && python3 != null);
|
||||
doCheck = (perl != null && python3 != null && !stdenv.isDarwin);
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tool for retrieving files using HTTP, HTTPS, and FTP";
|
||||
|
|
Loading…
Reference in a new issue