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