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