3
0
Fork 0
forked from mirrors/nixpkgs

GNU wget: Fix test suite runs.

svn path=/nixpkgs/trunk/; revision=21057
This commit is contained in:
Ludovic Courtès 2010-04-13 10:11:42 +00:00
parent 689d42ad19
commit d1c19b4049
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gettext, perl, gnutls ? null }:
{ stdenv, fetchurl, gettext, perl, LWP, gnutls ? null }:
stdenv.mkDerivation rec {
name = "wget-1.12";
@ -15,9 +15,16 @@ stdenv.mkDerivation rec {
do
sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g'
done
# Work around lack of DNS resolution in chroots.
for i in "tests/"*.pm "tests/"*.px
do
sed -i "$i" -e's/localhost/127.0.0.1/g'
done
'';
buildInputs = [ gettext perl ]
++ stdenv.lib.optional doCheck LWP
++ stdenv.lib.optional (gnutls != null) gnutls;
configureFlags =
@ -42,5 +49,6 @@ stdenv.mkDerivation rec {
homepage = http://www.gnu.org/software/wget/;
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.all;
};
}

View file

@ -1802,6 +1802,7 @@ let
wget = import ../tools/networking/wget {
inherit fetchurl stdenv gettext gnutls perl;
inherit (perlPackages) LWP;
};
which = import ../tools/system/which {