2004-08-23 21:23:03 +02:00
|
|
|
{ perlSupport, pythonSupport, javaSupport
|
|
|
|
, stdenv, fetchurl, perl ? null, python ? null, j2sdk ? null}:
|
2003-12-21 21:52:13 +01:00
|
|
|
|
2004-03-29 12:25:25 +02:00
|
|
|
assert perlSupport -> perl != null;
|
|
|
|
assert pythonSupport -> python != null;
|
2004-08-23 21:23:03 +02:00
|
|
|
assert javaSupport -> j2sdk != null;
|
2003-12-21 21:52:13 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2004-11-03 13:14:33 +01:00
|
|
|
name = "swig-1.3.19";
|
2003-12-21 21:52:13 +01:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2005-08-22 10:39:27 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/swig-1.3.19.tar.gz;
|
2004-11-03 13:14:33 +01:00
|
|
|
md5 = "a733455544426b31868dd87fc162e750";
|
2003-12-21 21:52:13 +01:00
|
|
|
};
|
|
|
|
|
2004-08-23 21:23:03 +02:00
|
|
|
inherit perlSupport pythonSupport javaSupport;
|
2003-12-21 21:52:13 +01:00
|
|
|
|
|
|
|
perl = if perlSupport then perl else null;
|
|
|
|
python = if pythonSupport then python else null;
|
2004-08-23 21:23:03 +02:00
|
|
|
j2sdk = if javaSupport then j2sdk else null;
|
2003-12-21 21:52:13 +01:00
|
|
|
}
|