nixpkgs/pkgs/tools/networking/curl/default.nix
Eelco Dolstra 94fe7734fa * Glibc 2.3.6.
* GCC 3.4.5.
* Updated several other stdenv packages.
* Modified the builders of several packages to use the generic
  builder.

svn path=/nixpkgs/trunk/; revision=4336
2005-12-06 00:12:45 +00:00

15 lines
458 B
Nix

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