35 lines
943 B
Nix
35 lines
943 B
Nix
{ lib, 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 = {
|
|
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 = lib.platforms.linux ++ lib.platforms.darwin;
|
|
maintainers = [ lib.maintainers.urkud lib.maintainers.wkennington ];
|
|
};
|
|
}
|