about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/swig/default.nix
blob: d0dd0a8cd3d7464ca6ea3b04b98e7e71d99fb619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ perlSupport, pythonSupport
, stdenv, fetchurl, perl ? null, python ? null}:

assert perlSupport -> perl != null;
assert pythonSupport -> python != null;

stdenv.mkDerivation {
  name = "swig-1.3.19";

  builder = ./builder.sh;
  src = fetchurl {
    url = http://heanet.dl.sourceforge.net/sourceforge/swig/swig-1.3.19.tar.gz;
    md5 = "a733455544426b31868dd87fc162e750";
  };

  perlSupport = perlSupport;
  pythonSupport = pythonSupport;

  perl = if perlSupport then perl else null;
  python = if pythonSupport then python else null;
}