2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2014-04-20 00:54:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 16:24:42 +02:00
|
|
|
pname = "swig";
|
2017-07-03 02:13:21 +02:00
|
|
|
version = "3.0.12";
|
2015-07-17 23:15:36 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
2017-07-03 02:13:21 +02:00
|
|
|
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
|
2014-04-20 00:54:16 +02:00
|
|
|
};
|
|
|
|
|
2018-12-28 21:02:49 +01:00
|
|
|
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
2014-04-20 00:54:16 +02:00
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--without-tcl" ];
|
2017-01-20 11:16:13 +01:00
|
|
|
|
2019-05-28 16:24:42 +02:00
|
|
|
# Disable ccache documentation as it needs yodl
|
2015-07-17 23:15:36 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2016-07-25 21:15:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-20 00:54:16 +02:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://swig.org/";
|
2016-07-25 21:15:30 +02:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
2016-07-26 15:34:49 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-04-20 00:54:16 +02:00
|
|
|
};
|
|
|
|
}
|