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