2015-09-22 10:59:39 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2012-01-05 23:15:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 15:24:42 +01:00
|
|
|
pname = "swig";
|
2015-07-17 22:15:23 +01:00
|
|
|
version = "2.0.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
|
|
|
sha256 = "0khm9gh5pczfcihr0pbicaicc4v9kjm5ip2alvkhmbb3ga6njkcm";
|
2012-01-05 23:15:24 +00:00
|
|
|
};
|
|
|
|
|
2015-07-17 22:15:23 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
2012-01-05 23:15:24 +00:00
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--without-tcl" ];
|
2017-01-20 10:16:13 +00:00
|
|
|
|
2019-05-28 15:24:42 +01:00
|
|
|
# Disable ccache documentation as it needs yodl
|
2015-07-17 22:15:23 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2019-05-28 15:24:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-05 23:15:24 +00:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
|
|
|
homepage = http://swig.org/;
|
2019-05-28 15:24:42 +01:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2012-01-05 23:15:24 +00:00
|
|
|
};
|
|
|
|
}
|