diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-11-16 14:48:27 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-11-16 14:48:27 +0000 |
commit | 0093d96841e1c7f605e04b09082284a8a98ac538 (patch) | |
tree | 6f0beb6c640e75756d393c26797d07aaa2d0b692 /pkgs/tools/networking/wget | |
parent | 1ff3207641c6d1586c3f2754c8d3f5221240695d (diff) | |
download | nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar.gz nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar.bz2 nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar.lz nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar.xz nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.tar.zst nixlib-0093d96841e1c7f605e04b09082284a8a98ac538.zip |
GNU Wget: Prepare for cross-compilation of a stripped-down version.
svn path=/nixpkgs/trunk/; revision=30445
Diffstat (limited to 'pkgs/tools/networking/wget')
-rw-r--r-- | pkgs/tools/networking/wget/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/tools/networking/wget/default.nix b/pkgs/tools/networking/wget/default.nix index afd741f27354..799c5e9dd85d 100644 --- a/pkgs/tools/networking/wget/default.nix +++ b/pkgs/tools/networking/wget/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1kadjg63x1mm741dxdidwsn1rz0f7dkzbq59v0iww87jr45p3ir4"; }; - preConfigure = + preConfigure = stdenv.lib.optionalString doCheck '' for i in "doc/texi2pod.pl" "tests/run-px" "util/rmold.pl" do sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g' @@ -21,16 +21,17 @@ stdenv.mkDerivation rec { done ''; - buildInputs = [ gettext perl ] - ++ stdenv.lib.optional doCheck LWP + buildNativeInputs = [ gettext ]; + buildInputs = + stdenv.lib.optionals doCheck [ perl LWP ] ++ stdenv.lib.optional (gnutls != null) gnutls; configureFlags = if gnutls != null then "--with-ssl=gnutls" - else ""; + else "--without-ssl"; - doCheck = true; + doCheck = (perl != null); meta = { description = "GNU Wget, a tool for retrieving files using HTTP, HTTPS, and FTP"; |