2004-08-23 21:23:03 +02:00
|
|
|
{ localServer ? false
|
|
|
|
, 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
|
|
|
, javaSwigBindings ? false
|
|
|
|
, javahlBindings ? false
|
2004-08-23 21:23:03 +02:00
|
|
|
, stdenv, fetchurl
|
2005-03-04 16:20:54 +01:00
|
|
|
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null, zlib ? null
|
2004-08-23 21:23:03 +02: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 10:56:09 +02:00
|
|
|
assert javaSwigBindings -> swig != null && swig.javaSupport;
|
|
|
|
assert javahlBindings -> j2sdk != null;
|
2005-03-04 16:20:54 +01:00
|
|
|
assert compressionSupport -> zlib != null;
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-03-04 16:20:54 +01:00
|
|
|
name = "subversion-1.1.3";
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-03-04 16:20:54 +01:00
|
|
|
url = http://subversion.tigris.org/tarballs/subversion-1.1.3.tar.bz2;
|
|
|
|
md5 = "a09c2b2fa1a09566c024547954a48478";
|
2004-08-23 21:23:03 +02: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 10:56:09 +02:00
|
|
|
patches = if javahlBindings then [./javahl.patch] else [];
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
openssl = if sslSupport then openssl else null;
|
2005-03-04 16:20:54 +01:00
|
|
|
zlib = if compressionSupport then zlib else null;
|
2004-08-23 21:23:03 +02:00
|
|
|
httpd = if httpServer then httpd else null;
|
|
|
|
db4 = if localServer then db4 else null;
|
2004-10-18 10:56:09 +02:00
|
|
|
swig = if pythonBindings || javaSwigBindings then swig else null;
|
2004-08-23 21:23:03 +02:00
|
|
|
python = if pythonBindings then swig.python else null;
|
2004-10-18 10:56:09 +02:00
|
|
|
j2sdk = if javaSwigBindings then swig.j2sdk else
|
|
|
|
if javahlBindings then j2sdk else null;
|
2004-08-23 21:23:03 +02:00
|
|
|
|
2004-09-19 12:34:01 +02:00
|
|
|
inherit expat localServer httpServer sslSupport
|
2004-10-18 10:56:09 +02:00
|
|
|
pythonBindings javaSwigBindings javahlBindings;
|
2004-08-23 21:23:03 +02:00
|
|
|
}
|