nixpkgs/pkgs/tools/networking/curl/default.nix
Armijn Hemel d2b1dc4a52 update curl to 7.15.1, fixes a security flaw. Merry X-mas :)
svn path=/nixpkgs/trunk/; revision=4432
2005-12-25 00:25:17 +00:00

15 lines
458 B
Nix

{stdenv, fetchurl, zlib, sslSupport ? false, openssl ? null}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "curl-7.15.1";
src = fetchurl {
url = http://curl.haxx.se/download/curl-7.15.1.tar.bz2;
md5 = "d330d48580bfade58c82d4f295f171f0";
};
buildInputs = [zlib (if sslSupport then openssl else null)];
patches = [./configure-cxxcpp.patch];
configureFlags = (if sslSupport then "--with-ssl" else "--without-ssl");
}