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 {
|
2007-01-25 19:09:13 +01:00
|
|
|
name = "neon-0.26.3";
|
2006-09-11 11:47:58 +02:00
|
|
|
|
2005-10-26 18:17:16 +02:00
|
|
|
src = fetchurl {
|
2007-01-25 19:09:13 +01:00
|
|
|
url = http://www.webdav.org/neon/neon-0.26.3.tar.gz;
|
|
|
|
sha256 = "0gvv5a5z0fmfhdvz5qb1zb1z30jlml1y03hjzg8dn9246nw7z2dn";
|
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;}
|