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-11-08 14:03:55 +01:00
|
|
|
name = "neon-0.26.2";
|
2006-09-11 11:47:58 +02:00
|
|
|
|
2005-10-26 18:17:16 +02:00
|
|
|
src = fetchurl {
|
2006-11-08 14:03:55 +01:00
|
|
|
url = http://www.webdav.org/neon/neon-0.26.2.tar.gz;
|
|
|
|
md5 = "65ff7f6d962305b984a60d6ec5b189b5";
|
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;}
|