2010-04-27 21:54:38 +00:00
|
|
|
{ stdenv, fetchurl, libxml2, pkgconfig
|
2008-06-19 15:29:25 +00:00
|
|
|
, compressionSupport ? true, zlib ? null
|
|
|
|
, sslSupport ? true, openssl ? null
|
2008-10-16 12:42:07 +00:00
|
|
|
, static ? false
|
|
|
|
, shared ? true
|
2008-06-19 15:29:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert compressionSupport -> zlib != null;
|
|
|
|
assert sslSupport -> openssl != null;
|
2008-10-16 12:42:07 +00:00
|
|
|
assert static || shared;
|
2008-06-19 15:29:25 +00:00
|
|
|
|
2009-12-08 13:08:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "neon-0.28.6";
|
2008-10-16 12:42:07 +00:00
|
|
|
|
2008-06-19 15:29:25 +00:00
|
|
|
src = fetchurl {
|
2009-12-08 13:08:27 +00:00
|
|
|
url = "http://www.webdav.org/neon/${name}.tar.gz";
|
|
|
|
sha256 = "03ncisn1iziz79vw678wsrv8jf63m2szd2qml5baj53slcd8pvh6";
|
2008-06-19 15:29:25 +00:00
|
|
|
};
|
2008-10-16 12:42:07 +00:00
|
|
|
|
2010-04-27 21:54:38 +00:00
|
|
|
buildInputs = [libxml2 pkgconfig openssl]
|
|
|
|
++ stdenv.lib.optional compressionSupport zlib;
|
2008-06-19 15:29:25 +00:00
|
|
|
|
|
|
|
configureFlags = ''
|
2008-10-16 12:42:07 +00:00
|
|
|
${if shared then "--enable-shared" else "--disable-shared"}
|
|
|
|
${if static then "--enable-static" else "--disable-static"}
|
2008-06-19 15:29:25 +00:00
|
|
|
${if compressionSupport then "--with-zlib" else "--without-zlib"}
|
2010-04-27 21:54:38 +00:00
|
|
|
${if sslSupport then "--with-ssl" else "--without-ssl"}
|
2009-04-22 23:15:00 +00:00
|
|
|
--enable-shared
|
2008-06-19 15:29:25 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {inherit compressionSupport sslSupport;};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An HTTP and WebDAV client library";
|
|
|
|
homepage = http://www.webdav.org/neon/;
|
|
|
|
};
|
|
|
|
}
|