Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, boost, tcl }:
2
3stdenv.mkDerivation rec {
4 pname = "swig";
5 version = "1.3.40";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
9 sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
10 };
11
12 doCheck = !stdenv.isCygwin;
13 # 'make check' uses boost and tcl
14 buildInputs = lib.optionals doCheck [ boost tcl ];
15
16 configureFlags = [ "--disable-ccache" ];
17
18
19 meta = with lib; {
20 description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
21 homepage = "https://swig.org/";
22 # Different types of licenses available: http://www.swig.org/Release/LICENSE .
23 license = licenses.gpl3Plus;
24 platforms = with platforms; linux ++ darwin;
25 };
26}