2014-04-19 22:47:22 -07:00
|
|
|
{ stdenv, fetchurl, boost, tcl }:
|
2003-12-21 12:52:13 -08:00
|
|
|
|
2009-09-21 13:56:53 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 07:24:42 -07:00
|
|
|
pname = "swig";
|
|
|
|
version = "1.3.40";
|
2003-12-21 12:52:13 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-28 07:24:42 -07:00
|
|
|
url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
|
2009-09-21 13:56:53 -07:00
|
|
|
sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
|
2003-12-21 12:52:13 -08:00
|
|
|
};
|
|
|
|
|
2015-06-05 06:47:32 -07:00
|
|
|
doCheck = !stdenv.isCygwin;
|
2014-04-19 22:47:22 -07:00
|
|
|
# 'make check' uses boost and tcl
|
|
|
|
buildInputs = stdenv.lib.optionals doCheck [ boost tcl ];
|
2009-09-21 13:56:53 -07:00
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [ "--disable-ccache" ];
|
2014-06-21 23:52:11 -07:00
|
|
|
|
2009-09-21 13:56:53 -07:00
|
|
|
|
2019-05-28 07:24:42 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
2009-09-21 13:56:53 -07:00
|
|
|
homepage = http://swig.org/;
|
2019-05-28 07:24:42 -07:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2009-09-21 13:56:53 -07:00
|
|
|
};
|
2007-05-13 18:05:53 -07:00
|
|
|
}
|