2004-08-23 20:23:03 +01:00
|
|
|
{ perlSupport, pythonSupport, javaSupport
|
2005-09-18 00:58:51 +01:00
|
|
|
, stdenv, fetchurl, perl ? null, python ? null, jdk ? null}:
|
2003-12-21 20:52:13 +00:00
|
|
|
|
2004-03-29 11:25:25 +01:00
|
|
|
assert perlSupport -> perl != null;
|
|
|
|
assert pythonSupport -> python != null;
|
2005-09-18 00:58:51 +01:00
|
|
|
assert javaSupport -> jdk != null;
|
2003-12-21 20:52:13 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-12-31 19:46:16 +00:00
|
|
|
name = "swig-1.3.33";
|
2003-12-21 20:52:13 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-12-31 19:46:16 +00:00
|
|
|
url = mirror://sourceforge/swig/swig-1.3.33.tar.gz;
|
|
|
|
sha256 = "02rz31i642sbsngny7k98d9hxlkcb9snvbzlnz3sh0qiyr3ciggv";
|
2003-12-21 20:52:13 +00:00
|
|
|
};
|
|
|
|
|
2004-08-23 20:23:03 +01: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;
|
2005-09-18 00:58:51 +01:00
|
|
|
jdk = if javaSupport then jdk else null;
|
2007-05-14 02:05:53 +01:00
|
|
|
}
|