2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swig";
|
|
|
|
version = "2.0.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swig";
|
|
|
|
repo = "swig";
|
|
|
|
rev = "rel-${version}";
|
|
|
|
sha256 = "0khm9gh5pczfcihr0pbicaicc4v9kjm5ip2alvkhmbb3ga6njkcm";
|
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
# pcre-config isn't on PATH when cross-building
|
|
|
|
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
|
|
|
configureFlags = [ "--without-tcl" ];
|
|
|
|
|
|
|
|
# Disable ccache documentation as it needs yodl
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://swig.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|