From d1c19b4049ef21603b5abbbee208320838a67f20 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 13 Apr 2010 10:11:42 +0000 Subject: GNU wget: Fix test suite runs. svn path=/nixpkgs/trunk/; revision=21057 --- pkgs/tools/networking/wget/default.nix | 10 +++++++++- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/wget/default.nix b/pkgs/tools/networking/wget/default.nix index 1e3171da00b..af15d85af4b 100644 --- a/pkgs/tools/networking/wget/default.nix +++ b/pkgs/tools/networking/wget/default.nix @@ -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; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b687b1384ee..70f1ef0e763 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1802,6 +1802,7 @@ let wget = import ../tools/networking/wget { inherit fetchurl stdenv gettext gnutls perl; + inherit (perlPackages) LWP; }; which = import ../tools/system/which { -- cgit 1.4.1