git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitf8d83938a757b26802535af14ab1281d369f0fe4 authorOrivej Desh <orivej@gmx.fr> dateThu 1 Aug 2019, 09:23 (7 years ago) parent50ddd02
2 files changed+38
pkgs/development/tools/misc/swig/4.nix+37 pkgs/top-level/all-packages.nix+1
pkgs/development/tools/misc/swig/4.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "swig";
5+ version = "4.0.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "swig";
9+ repo = "swig";
10+ rev = "rel-${version}";
11+ sha256 = "0yx33972jd3214xr3mrap0j5clma9bvs42qz8x38dfz62xlsi78v";
12+ };
13+
14+ PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
15+ nativeBuildInputs = [ autoconf automake libtool bison ];
16+ buildInputs = [ pcre ];
17+
18+ configureFlags = [ "--without-tcl" ];
19+
20+ # Disable ccache documentation as it needs yodl
21+ postPatch = ''
22+ sed -i '/man1/d' CCache/Makefile.in
23+ '';
24+
25+ preConfigure = ''
26+ ./autogen.sh
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
31+ homepage = http://swig.org/;
32+ # Different types of licenses available: http://www.swig.org/Release/LICENSE .
33+ license = licenses.gpl3Plus;
34+ maintainers = with maintainers; [ orivej ];
35+ platforms = with platforms; linux ++ darwin;
36+ };
37+}
pkgs/top-level/all-packages.nix+1
@@ -9870,6 +9870,7 @@ in
98709870 swig1 = callPackage ../development/tools/misc/swig { };
98719871 swig2 = callPackage ../development/tools/misc/swig/2.x.nix { };
98729872 swig3 = callPackage ../development/tools/misc/swig/3.x.nix { };
9873+ swig4 = callPackage ../development/tools/misc/swig/4.nix { };
98739874 swig = swig3;
98749875 swigWithJava = swig;
98759876