forked from mirrors/nixpkgs
35 lines
912 B
Nix
35 lines
912 B
Nix
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "swig-${version}";
|
|
version = "3.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swig";
|
|
repo = "swig";
|
|
rev = "rel-${version}";
|
|
sha256 = "18zp9546d5xfq88nyykk5v3hh0iyp8r59i2ridbavxn3z914mhyv";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
|
buildInputs = [ pcre ];
|
|
|
|
postPatch = ''
|
|
# Disable ccache documentation as it need yodl
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
'';
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
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";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ urkud wkennington ];
|
|
};
|
|
}
|