2006-09-11 11:47:58 +02:00
|
|
|
{ stdenv, fetchurl, libxml2
|
|
|
|
, compressionSupport ? true, zlib ? null
|
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
}:
|
2005-10-26 18:17:16 +02:00
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
assert compressionSupport -> zlib != null;
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
(stdenv.mkDerivation {
|
2006-07-24 23:52:49 +02:00
|
|
|
name = "neon-0.25.5";
|
2006-09-11 11:47:58 +02:00
|
|
|
|
2005-10-26 18:17:16 +02:00
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/neon-0.25.5.tar.gz;
|
2006-07-24 23:52:49 +02:00
|
|
|
md5 = "b5fdb71dd407f0a3de0f267d27c9ab17";
|
2005-10-26 18:17:16 +02:00
|
|
|
};
|
2006-09-11 11:47:58 +02:00
|
|
|
|
|
|
|
buildInputs = [libxml2] ++ (if compressionSupport then [zlib] else []);
|
2006-07-25 01:00:54 +02:00
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
configureFlags="
|
|
|
|
--enable-shared --disable-static
|
|
|
|
${if compressionSupport then "--with-zlib" else "--without-zlib"}
|
|
|
|
${if sslSupport then "--with-ssl --with-libs=${openssl}" else "--without-ssl"}
|
|
|
|
";
|
|
|
|
}) // {inherit compressionSupport sslSupport;}
|