2005-09-05 13:35:26 +02:00
|
|
|
{stdenv, fetchurl, zlib, sslSupport ? false, openssl ? null, dietgcc}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-12-25 01:49:21 +01:00
|
|
|
name = "curl-7.15.1";
|
2005-09-05 13:35:26 +02:00
|
|
|
src = fetchurl {
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/curl-7.15.1.tar.bz2;
|
2005-12-25 01:49:21 +01:00
|
|
|
md5 = "d330d48580bfade58c82d4f295f171f0";
|
2005-09-05 13:35:26 +02:00
|
|
|
};
|
|
|
|
buildInputs = [zlib (if sslSupport then openssl else null)];
|
|
|
|
patches = [./configure-cxxcpp.patch];
|
|
|
|
configureFlags = "--enable-shared=no" + (if sslSupport then "--with-ssl" else "--without-ssl");
|
|
|
|
NIX_GCC = dietgcc;
|
|
|
|
NIX_GLIBC_FLAGS_SET=1;
|
|
|
|
NIX_CFLAGS_COMPILE="-D_BSD_SOURCE=1 -DHAVE_INET_NTOA_R_2_ARGS=1";
|
|
|
|
}
|