12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-hFHEE9wy8Lja9G396tI4fj4LhOkpPKJkDuy1L62AXr4=";
23 PCRE_CONFIG = "${pcre2.dev}/bin/pcre-config";
30 buildInputs = [ pcre2 ];
32 configureFlags = [ "--without-tcl" ];
34 # Disable ccache documentation as it needs yodl
36 sed -i '/man1/d' CCache/Makefile.in
44 changelog = "https://github.com/swig/swig/blob/${finalAttrs.src.rev}/CHANGES.current";
45 description = "Interface compiler that connects C/C++ code to higher-level languages";
46 homepage = "https://swig.org/";
47 # Different types of licenses available: https://www.swig.org/Release/LICENSE .
48 license = lib.licenses.gpl3Plus;
49 maintainers = with lib.maintainers; [ orivej ];
51 platforms = with lib.platforms; linux ++ darwin;