nixpkgs/pkgs/tools/networking/curl-diet/default.nix
Armijn Hemel 53d9e09d0d update to 7.15.4
svn path=/nixpkgs/trunk/; revision=5674
2006-07-10 18:22:50 +00:00

18 lines
604 B
Nix

{stdenv, fetchurl, zlib, sslSupport ? false, openssl ? null, dietgcc}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "curl-7.15.4";
src = fetchurl {
url = http://curl.haxx.se/download/curl-7.15.4.tar.bz2;
md5 = "d9345a55c8bc67eafcd37fa1b728e00e";
};
buildInputs = [zlib (if sslSupport then openssl else null)];
patches = [./configure-cxxcpp.patch];
configureFlags = "--enable-shared=no" + (if sslSupport then "--with-ssl" else "--without-ssl");
NIX_GCC = dietgcc;
NIX_GLIBC_FLAGS_SET=1;
NIX_CFLAGS_COMPILE="-D_BSD_SOURCE=1 -DHAVE_INET_NTOA_R_2_ARGS=1";
}