nixpkgs/pkgs/tools/networking/curl/default.nix
Eelco Dolstra 3389f4bc36 * Copy lots of files to nix.cs.uu.nl.
svn path=/nixpkgs/trunk/; revision=4623
2006-01-30 16:04:03 +00:00

15 lines
463 B
Nix

{stdenv, fetchurl, zlib, sslSupport ? false, openssl ? null}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "curl-7.15.1";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/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");
}