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

35 lines
943 B
Nix
Raw Normal View History

2015-09-22 12:59:39 +03:00
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2014-04-20 02:54:16 +04:00
stdenv.mkDerivation rec {
2015-07-18 00:15:36 +03:00
name = "swig-${version}";
2015-09-21 22:15:01 +03:00
version = "3.0.7";
2015-07-18 00:15:36 +03:00
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
2015-09-21 22:15:01 +03:00
sha256 = "18zp9546d5xfq88nyykk5v3hh0iyp8r59i2ridbavxn3z914mhyv";
2014-04-20 02:54:16 +04:00
};
2015-07-18 00:15:36 +03:00
nativeBuildInputs = [ autoconf automake libtool bison ];
2014-04-20 02:54:16 +04:00
buildInputs = [ pcre ];
2015-07-18 00:15:36 +03:00
postPatch = ''
# Disable ccache documentation as it need yodl
sed -i '/man1/d' CCache/Makefile.in
'';
preConfigure = ''
./autogen.sh
'';
2015-09-22 12:59:39 +03:00
meta = {
2014-04-20 02:54:16 +04: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 12:59:39 +03:00
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.urkud lib.maintainers.wkennington ];
2014-04-20 02:54:16 +04:00
};
}