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