nixpkgs/pkgs/development/tools/misc/swig/3.x.nix

35 lines
912 B
Nix
Raw Normal View History

2015-07-17 22:15:36 +01:00
{ 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}";
2015-09-21 20:15:01 +01:00
version = "3.0.7";
2015-07-17 22:15:36 +01:00
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
2015-09-21 20:15:01 +01:00
sha256 = "18zp9546d5xfq88nyykk5v3hh0iyp8r59i2ridbavxn3z914mhyv";
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
'';
2015-09-21 20:15:01 +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/;
# Licensing is a mess: http://www.swig.org/Release/LICENSE .
license = "BSD-style";
2015-09-21 20:15:01 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ urkud wkennington ];
2014-04-19 23:54:16 +01:00
};
}