2015-09-22 10:59:39 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2014-04-19 23:54:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-17 22:15:36 +01:00
|
|
|
name = "swig-${version}";
|
2016-07-25 20:15:30 +01:00
|
|
|
version = "3.0.10";
|
2015-07-17 22:15:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
2016-07-25 20:15:30 +01:00
|
|
|
sha256 = "049rj883r9mf2bgabj3b03p7cnmqgl5939lmh8v5nnia24zb51jg";
|
2014-04-19 23:54:16 +01:00
|
|
|
};
|
|
|
|
|
2015-07-17 22:15:36 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
2014-04-19 23:54:16 +01:00
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
2015-07-17 22:15:36 +01:00
|
|
|
postPatch = ''
|
|
|
|
# Disable ccache documentation as it need yodl
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2016-07-25 20:15:30 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-19 23:54:16 +01:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
|
|
|
homepage = http://swig.org/;
|
2016-07-25 20:15:30 +01:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; [ linux darwin ];
|
|
|
|
maintainers = with maintainers; [ urkud wkennington ];
|
2014-04-19 23:54:16 +01:00
|
|
|
};
|
|
|
|
}
|