94fe7734fa
* 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
15 lines
458 B
Nix
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");
|
|
}
|