2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, tcl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optionals doCheck [ boost tcl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-ccache" ];
|
|
|
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "swig";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://swig.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|