nixpkgs/pkgs/applications/version-management/subversion/default.nix
Eelco Dolstra 5e7f5b2ada * Upgrade to Subversion 0.35.1, Berkeley DB 4.2.52.
svn path=/nixpkgs/trunk/; revision=595
2003-12-22 18:30:38 +00:00

38 lines
1 KiB
Nix

{ localServer ? false
, httpServer ? false
, sslSupport ? false
, swigBindings ? false
, stdenv, fetchurl
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null
}:
assert !isNull expat;
assert localServer -> !isNull db4;
assert httpServer -> !isNull httpd && httpd.expat == expat;
assert sslSupport -> !isNull openssl && (httpServer -> httpd.openssl == openssl);
assert swigBindings -> !isNull swig && swig.pythonSupport;
derivation {
name = "subversion-0.35.1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://subversion.tigris.org/tarballs/subversion-0.35.1.tar.gz;
md5 = "c4473988acdd82e8b0e176eefc7d0fb7";
};
localServer = localServer;
httpServer = httpServer;
sslSupport = sslSupport;
swigBindings = swigBindings;
stdenv = stdenv;
openssl = if sslSupport then openssl else null;
httpd = if httpServer then httpd else null;
expat = expat;
db4 = if localServer then db4 else null;
swig = if swigBindings then swig else null;
python = if swigBindings then swig.python else null;
}