2015-09-22 11:59:39 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2014-04-20 00:54:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-17 23:15:36 +02:00
|
|
|
name = "swig-${version}";
|
2015-09-21 21:15:01 +02:00
|
|
|
version = "3.0.7";
|
2015-07-17 23:15:36 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
2015-09-21 21:15:01 +02:00
|
|
|
sha256 = "18zp9546d5xfq88nyykk5v3hh0iyp8r59i2ridbavxn3z914mhyv";
|
2014-04-20 00:54:16 +02:00
|
|
|
};
|
|
|
|
|
2015-07-17 23:15:36 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
2014-04-20 00:54:16 +02:00
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
2015-07-17 23:15:36 +02:00
|
|
|
postPatch = ''
|
|
|
|
# Disable ccache documentation as it need yodl
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2015-09-22 11:59:39 +02:00
|
|
|
meta = {
|
2014-04-20 00:54:16 +02:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
|
|
|
homepage = http://swig.org/;
|
|
|
|
# Licensing is a mess: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = "BSD-style";
|
2015-09-22 11:59:39 +02:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
|
|
maintainers = [ lib.maintainers.urkud lib.maintainers.wkennington ];
|
2014-04-20 00:54:16 +02:00
|
|
|
};
|
|
|
|
}
|