GNU Wget: Prepare for cross-compilation of a stripped-down version.
svn path=/nixpkgs/trunk/; revision=30445
This commit is contained in:
parent
1ff3207641
commit
0093d96841
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1kadjg63x1mm741dxdidwsn1rz0f7dkzbq59v0iww87jr45p3ir4";
|
sha256 = "1kadjg63x1mm741dxdidwsn1rz0f7dkzbq59v0iww87jr45p3ir4";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure =
|
preConfigure = stdenv.lib.optionalString doCheck
|
||||||
'' for i in "doc/texi2pod.pl" "tests/run-px" "util/rmold.pl"
|
'' for i in "doc/texi2pod.pl" "tests/run-px" "util/rmold.pl"
|
||||||
do
|
do
|
||||||
sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g'
|
sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g'
|
||||||
@ -21,16 +21,17 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ gettext perl ]
|
buildNativeInputs = [ gettext ];
|
||||||
++ stdenv.lib.optional doCheck LWP
|
buildInputs =
|
||||||
|
stdenv.lib.optionals doCheck [ perl LWP ]
|
||||||
++ stdenv.lib.optional (gnutls != null) gnutls;
|
++ stdenv.lib.optional (gnutls != null) gnutls;
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
if gnutls != null
|
if gnutls != null
|
||||||
then "--with-ssl=gnutls"
|
then "--with-ssl=gnutls"
|
||||||
else "";
|
else "--without-ssl";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = (perl != null);
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "GNU Wget, a tool for retrieving files using HTTP, HTTPS, and FTP";
|
description = "GNU Wget, a tool for retrieving files using HTTP, HTTPS, and FTP";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user