2004-08-23 23:23:03 +04:00
|
|
|
{ localServer ? false
|
|
|
|
, httpServer ? false
|
|
|
|
, sslSupport ? false
|
2005-03-04 18:20:54 +03:00
|
|
|
, compressionSupport ? false
|
2004-08-23 23:23:03 +04:00
|
|
|
, pythonBindings ? false
|
2004-10-18 12:56:09 +04:00
|
|
|
, javaSwigBindings ? false
|
|
|
|
, javahlBindings ? false
|
2004-08-23 23:23:03 +04:00
|
|
|
, stdenv, fetchurl
|
2005-03-04 18:20:54 +03:00
|
|
|
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null, zlib ? null
|
2004-08-23 23:23:03 +04:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert expat != null;
|
|
|
|
assert localServer -> db4 != null;
|
|
|
|
assert httpServer -> httpd != null && httpd.expat == expat;
|
|
|
|
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
|
|
|
assert pythonBindings -> swig != null && swig.pythonSupport;
|
2004-10-18 12:56:09 +04:00
|
|
|
assert javaSwigBindings -> swig != null && swig.javaSupport;
|
|
|
|
assert javahlBindings -> j2sdk != null;
|
2005-03-04 18:20:54 +03:00
|
|
|
assert compressionSupport -> zlib != null;
|
2004-08-23 23:23:03 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-04-05 16:12:18 +04:00
|
|
|
name = "subversion-1.1.4";
|
2004-08-23 23:23:03 +04:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-08-22 12:39:27 +04:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/subversion-1.1.4.tar.bz2;
|
2005-04-05 16:12:18 +04:00
|
|
|
md5 = "6e557ae65b6b8d7577cc7704ede85a23";
|
2004-08-23 23:23:03 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
# This is a hopefully temporary fix for the problem that
|
|
|
|
# libsvnjavahl.so isn't linked against libstdc++, which causes
|
|
|
|
# loading the library into the JVM to fail.
|
2004-10-18 12:56:09 +04:00
|
|
|
patches = if javahlBindings then [./javahl.patch] else [];
|
2004-08-23 23:23:03 +04:00
|
|
|
|
|
|
|
openssl = if sslSupport then openssl else null;
|
2005-03-04 18:20:54 +03:00
|
|
|
zlib = if compressionSupport then zlib else null;
|
2004-08-23 23:23:03 +04:00
|
|
|
httpd = if httpServer then httpd else null;
|
|
|
|
db4 = if localServer then db4 else null;
|
2004-10-18 12:56:09 +04:00
|
|
|
swig = if pythonBindings || javaSwigBindings then swig else null;
|
2004-08-23 23:23:03 +04:00
|
|
|
python = if pythonBindings then swig.python else null;
|
2004-10-18 12:56:09 +04:00
|
|
|
j2sdk = if javaSwigBindings then swig.j2sdk else
|
|
|
|
if javahlBindings then j2sdk else null;
|
2004-08-23 23:23:03 +04:00
|
|
|
|
2004-09-19 14:34:01 +04:00
|
|
|
inherit expat localServer httpServer sslSupport
|
2004-10-18 12:56:09 +04:00
|
|
|
pythonBindings javaSwigBindings javahlBindings;
|
2004-08-23 23:23:03 +04:00
|
|
|
}
|