From 33de26c029b4472bdb71adcae92d0dcc76ce76c2 Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Mon, 22 Jun 2015 17:00:57 -0700 Subject: [PATCH] darwin purity: wget --- pkgs/tools/networking/wget/default.nix | 27 +++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/networking/wget/default.nix b/pkgs/tools/networking/wget/default.nix index 7277b2a1fe7..196bcd024d9 100644 --- a/pkgs/tools/networking/wget/default.nix +++ b/pkgs/tools/networking/wget/default.nix @@ -10,20 +10,19 @@ stdenv.mkDerivation rec { sha256 = "0dzv5xf9qxc2bp4cyifmaghh3h464wbm73xiwcrvckf1ynqbgxv7"; }; - preConfigure = stdenv.lib.optionalString doCheck - '' for i in "doc/texi2pod.pl" "util/rmold.pl" - 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 - '' + stdenv.lib.optionalString stdenv.isDarwin '' - export LIBS="-liconv -lintl" - ''; + preConfigure = '' + for i in "doc/texi2pod.pl" "util/rmold.pl"; do + sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g' + done + '' + stdenv.lib.optionalString doCheck '' + # 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 + '' + stdenv.lib.optionalString stdenv.isDarwin '' + export LIBS="-liconv -lintl" + ''; nativeBuildInputs = [ gettext pkgconfig ]; buildInputs = [ libidn libiconv libpsl ]