mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
swig4: init at 4.0.0
SWIG 4 is not a complete replacement for SWIG 3 because it has removed support for CFFI, Allegrocl, Chicken, CLISP, S-EXP, UFFI, Pike, Modula3.
This commit is contained in:
parent
50ddd02293
commit
f8d83938a7
2 changed files with 38 additions and 0 deletions
37
pkgs/development/tools/misc/swig/4.nix
Normal file
37
pkgs/development/tools/misc/swig/4.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "swig";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "swig";
|
||||
repo = "swig";
|
||||
rev = "rel-${version}";
|
||||
sha256 = "0yx33972jd3214xr3mrap0j5clma9bvs42qz8x38dfz62xlsi78v";
|
||||
};
|
||||
|
||||
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
|
||||
homepage = http://swig.org/;
|
||||
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ orivej ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
|
@ -9870,6 +9870,7 @@ in
|
|||
swig1 = callPackage ../development/tools/misc/swig { };
|
||||
swig2 = callPackage ../development/tools/misc/swig/2.x.nix { };
|
||||
swig3 = callPackage ../development/tools/misc/swig/3.x.nix { };
|
||||
swig4 = callPackage ../development/tools/misc/swig/4.nix { };
|
||||
swig = swig3;
|
||||
swigWithJava = swig;
|
||||
|
||||
|
|
Loading…
Reference in a new issue