2006-09-11 11:47:58 +02:00
|
|
|
{ bdbSupport ? false
|
2004-08-23 21:23:03 +02:00
|
|
|
, httpServer ? false
|
|
|
|
, sslSupport ? false
|
2005-03-04 16:20:54 +01:00
|
|
|
, compressionSupport ? false
|
2004-08-23 21:23:03 +02:00
|
|
|
, pythonBindings ? false
|
2004-10-18 10:56:09 +02:00
|
|
|
, javahlBindings ? false
|
2006-09-11 11:47:58 +02:00
|
|
|
, stdenv, fetchurl, apr, aprutil, neon, zlib
|
|
|
|
, httpd ? null, expat, swig ? null, jdk ? null
|
2004-08-23 21:23:03 +02:00
|
|
|
}:
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
assert bdbSupport -> aprutil.bdbSupport;
|
2004-08-23 21:23:03 +02:00
|
|
|
assert httpServer -> httpd != null && httpd.expat == expat;
|
|
|
|
assert pythonBindings -> swig != null && swig.pythonSupport;
|
2005-09-18 01:58:51 +02:00
|
|
|
assert javahlBindings -> jdk != null;
|
2006-09-11 11:47:58 +02:00
|
|
|
assert sslSupport -> neon.sslSupport;
|
|
|
|
assert compressionSupport -> neon.compressionSupport;
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-09-11 11:47:58 +02:00
|
|
|
name = "subversion-1.4.0";
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2006-09-11 11:47:58 +02:00
|
|
|
url = http://subversion.tigris.org/downloads/subversion-1.4.0.tar.bz2;
|
|
|
|
sha1 = "92671bba140e9b9e300b5ffb526c4a7c59aeb5b1";
|
2004-08-23 21:23:03 +02:00
|
|
|
};
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
buildInputs =
|
|
|
|
[expat zlib]
|
|
|
|
++ (if pythonBindings then [swig.python] else []);
|
2004-08-23 21:23:03 +02:00
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
configureFlags = "
|
|
|
|
--without-gdbm --disable-static
|
|
|
|
--with-apr=${apr} -with-apr-util=${aprutil} --with-neon=${neon}
|
2006-09-11 22:15:40 +02:00
|
|
|
--disable-keychain
|
2006-09-11 11:47:58 +02:00
|
|
|
${if bdbSupport then "--with-berkeley-db" else "--without-berkeley-db"}
|
|
|
|
${if httpServer then
|
|
|
|
"--with-apxs=${httpd}/bin/apxs --with-apr=${httpd} --with-apr-util=${httpd}"
|
|
|
|
else
|
|
|
|
"--without-apxs"}
|
|
|
|
${if pythonBindings then "--with-swig=${swig}" else "--without-swig"}
|
|
|
|
${if javahlBindings then "--enable-javahl --with-jdk=${jdk}" else ""}
|
|
|
|
";
|
|
|
|
|
|
|
|
inherit httpServer pythonBindings javahlBindings;
|
2004-08-23 21:23:03 +02:00
|
|
|
}
|