3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/swig/3.x.nix

37 lines
972 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2014-04-19 23:54:16 +01:00
stdenv.mkDerivation rec {
pname = "swig";
2017-07-03 01:13:21 +01:00
version = "3.0.12";
2015-07-17 22:15:36 +01:00
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
2017-07-03 01:13:21 +01:00
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
2014-04-19 23:54:16 +01:00
};
2018-12-28 20:02:49 +00:00
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
nativeBuildInputs = [ autoconf automake libtool bison ];
2014-04-19 23:54:16 +01:00
buildInputs = [ pcre ];
2018-07-25 22:44:21 +01:00
configureFlags = [ "--without-tcl" ];
2017-01-20 10:16:13 +00:00
# Disable ccache documentation as it needs yodl
2015-07-17 22:15:36 +01:00
postPatch = ''
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;
2016-07-26 14:34:49 +01:00
platforms = with platforms; linux ++ darwin;
2014-04-19 23:54:16 +01:00
};
}