Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoconf,
|
|
automake,
|
|
libtool,
|
|
bison,
|
|
pcre2,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "swig";
|
|
version = "4.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swig";
|
|
repo = "swig";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-wEqbKDgXVU8kQxdh7uC+EZ0u5leeoYh2d/61qB4guOg=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
libtool
|
|
bison
|
|
pcre2
|
|
];
|
|
buildInputs = [ pcre2 ];
|
|
|
|
configureFlags = [ "--without-tcl" ];
|
|
|
|
# Disable ccache documentation as it needs yodl
|
|
postPatch = ''
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
'';
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/swig/swig/blob/${finalAttrs.src.rev}/CHANGES.current";
|
|
description = "Interface compiler that connects C/C++ code to higher-level languages";
|
|
homepage = "https://swig.org/";
|
|
# Different types of licenses available: https://www.swig.org/Release/LICENSE .
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
mainProgram = "swig";
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
};
|
|
})
|