2021-01-23 13:26:19 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2012-01-06 00:15:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 16:24:42 +02:00
|
|
|
pname = "swig";
|
2015-07-17 23:15:23 +02:00
|
|
|
version = "2.0.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
|
|
|
sha256 = "0khm9gh5pczfcihr0pbicaicc4v9kjm5ip2alvkhmbb3ga6njkcm";
|
2012-01-06 00:15:24 +01:00
|
|
|
};
|
|
|
|
|
2015-07-17 23:15:23 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
2012-01-06 00:15:24 +01: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:23 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2012-01-06 00:15:24 +01: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/";
|
2019-05-28 16:24:42 +02:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2012-01-06 00:15:24 +01:00
|
|
|
};
|
|
|
|
}
|