about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/swig/default.nix
blob: ad7b64c255685592089e7f137b978b5d2c9551f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchurl, boost, tcl }:

stdenv.mkDerivation rec {
  pname = "swig";
  version = "1.3.40";

  src = fetchurl {
    url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
    sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
  };

  doCheck = !stdenv.isCygwin;
  # 'make check' uses boost and tcl
  buildInputs = lib.optionals doCheck [ boost tcl ];

  configureFlags = [ "--disable-ccache" ];


  meta = with lib; {
    description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
    mainProgram = "swig";
    homepage = "https://swig.org/";
    # Different types of licenses available: http://www.swig.org/Release/LICENSE .
    license = licenses.gpl3Plus;
    platforms = with platforms; linux ++ darwin;
  };
}