nixpkgs/pkgs-ng/applications/version-management/subversion/default.fix
Eelco Dolstra 4d037af2de * Added assertions and defaults to the Subversion package.
* Some cleanups.

svn path=/nixpkgs/trunk/; revision=482
2003-11-05 16:28:26 +00:00

37 lines
974 B
Plaintext

{ 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;
derivation {
name = "subversion-0.32.1";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://svn.collab.net/tarballs/subversion-0.32.1.tar.gz;
md5 = "b06717a8ef50db4b5c4d380af00bd901";
};
localServer = localServer;
httpServer = httpServer;
sslSupport = sslSupport;
swigBindings = swigBindings;
stdenv = stdenv;
openssl = if sslSupport then openssl else "";
httpd = if httpServer then httpd else "";
expat = expat;
db4 = if localServer then db4 else "";
swig = if swigBindings then swig else "";
}