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