1 { lib, stdenv, fetchurl, boost, tcl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
9 sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
12 doCheck = !stdenv.isCygwin;
13 # 'make check' uses boost and tcl
14 buildInputs = lib.optionals doCheck [ boost tcl ];
16 configureFlags = [ "--disable-ccache" ];
20 description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
22 homepage = "https://swig.org/";
23 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
24 license = licenses.gpl3Plus;
25 platforms = with platforms; linux ++ darwin;