nixpkgs/pkgs/tools/networking/curl/default.nix
Eelco Dolstra c6ecc900cf * Add more stuff to the bootstrap builder.
* Remove some redundant *Diet values in all-packages.nix.

svn path=/nixpkgs/trunk/; revision=6780
2006-10-19 21:36:51 +00:00

27 lines
705 B
Nix

{stdenv, fetchurl, zlibSupport ? false, zlib, sslSupport ? false, openssl ? null}:
assert zlibSupport -> zlib != null;
assert sslSupport -> openssl != null;
stdenv.mkDerivation ({
name = "curl-7.15.5";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/curl-7.15.5.tar.bz2;
md5 = "594142c7d53bbdd988e8cef6354eeeff";
};
buildInputs =
(if zlibSupport then [zlib] else [])
++ (if sslSupport then [openssl] else []);
patches = [./configure-cxxcpp.patch];
configureFlags = "
${if sslSupport then "--with-ssl=${openssl}" else "--without-ssl"}
";
inherit sslSupport openssl;
}
// (if stdenv ? isDietLibC then {
CFLAGS = "-DHAVE_INET_NTOA_R_2_ARGS=1";
} else {})
)