2019-08-01 10:23:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swig";
|
2019-10-08 23:39:25 +01:00
|
|
|
version = "4.0.1";
|
2019-08-01 10:23:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
2019-10-08 23:39:25 +01:00
|
|
|
sha256 = "1i1gl5gd6b5i1hiazq7m4nvlq86zd0fhk052xhwlnb596pjhgyhf";
|
2019-08-01 10:23:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
|
|
|
configureFlags = [ "--without-tcl" ];
|
|
|
|
|
|
|
|
# Disable ccache documentation as it needs yodl
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://swig.org/";
|
2019-08-01 10:23:53 +01:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|