2004-08-23 12:23:03 -07:00
|
|
|
{ perlSupport, pythonSupport, javaSupport
|
2005-09-17 16:58:51 -07:00
|
|
|
, stdenv, fetchurl, perl ? null, python ? null, jdk ? null}:
|
2003-12-21 12:52:13 -08:00
|
|
|
|
2004-03-29 02:25:25 -08:00
|
|
|
assert perlSupport -> perl != null;
|
|
|
|
assert pythonSupport -> python != null;
|
2005-09-17 16:58:51 -07:00
|
|
|
assert javaSupport -> jdk != null;
|
2003-12-21 12:52:13 -08:00
|
|
|
|
2004-03-29 09:23:01 -08:00
|
|
|
stdenv.mkDerivation {
|
2007-05-13 18:05:53 -07:00
|
|
|
name = "swig-1.3.31";
|
2003-12-21 12:52:13 -08:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 06:01:33 -07:00
|
|
|
url = mirror://sourceforge/swig/swig-1.3.31.tar.gz;
|
2007-05-13 18:05:53 -07:00
|
|
|
sha256 = "01fqf6xvhaqh76kh13bknn5j7axpm1pdnjpzwxsa9d1lbq4n7bf2";
|
2003-12-21 12:52:13 -08:00
|
|
|
};
|
|
|
|
|
2004-08-23 12:23:03 -07:00
|
|
|
inherit perlSupport pythonSupport javaSupport;
|
2003-12-21 12:52:13 -08:00
|
|
|
|
|
|
|
perl = if perlSupport then perl else null;
|
|
|
|
python = if pythonSupport then python else null;
|
2005-09-17 16:58:51 -07:00
|
|
|
jdk = if javaSupport then jdk else null;
|
2007-05-13 18:05:53 -07:00
|
|
|
}
|