mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
12ae5363ea
* Make builders unexecutable by removing the hash-bang line and execute permission. * Convert calls to `derivation' to `mkDerivation'. * Remove `system' and `stdenv' attributes from calls to `mkDerivation'. These transformations were all done automatically, so it is quite possible I broke stuff. * Put the `mkDerivation' function in stdenv/generic. svn path=/nixpkgs/trunk/; revision=874
32 lines
962 B
Nix
32 lines
962 B
Nix
{ localServer ? false
|
|
, httpServer ? false
|
|
, sslSupport ? false
|
|
, swigBindings ? false
|
|
, stdenv, fetchurl
|
|
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null
|
|
}:
|
|
|
|
assert expat != null;
|
|
assert localServer -> db4 != null;
|
|
assert httpServer -> httpd != null && httpd.expat == expat;
|
|
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
|
assert swigBindings -> swig != null && swig.pythonSupport;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "subversion-1.0.1";
|
|
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = http://subversion.tigris.org/tarballs/subversion-1.0.1.tar.bz2;
|
|
md5 = "50ca608d260b76d99ed85909acb7ae92";
|
|
};
|
|
|
|
openssl = if sslSupport then openssl else null;
|
|
httpd = if httpServer then httpd else null;
|
|
db4 = if localServer then db4 else null;
|
|
swig = if swigBindings then swig else null;
|
|
python = if swigBindings then swig.python else null;
|
|
|
|
inherit expat localServer httpServer sslSupport swigBindings;
|
|
}
|