nixpkgs/pkgs/tools/networking/curl/default.nix
Roy van den Broek 9d27c94bda Pass the path to OpenSSL to the `--with-ssl' configure flag when building
with SSL support.


svn path=/nixpkgs/trunk/; revision=5144
2006-04-05 09:08:43 +00:00

16 lines
444 B
Nix

{stdenv, fetchurl, zlib, sslSupport ? false, openssl ? null}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "curl-7.15.1";
builder = ./builder.sh;
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];
inherit sslSupport openssl;
}