mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
52044259ac
Co-authored-by: quantenzitrone <74491719+quantenzitrone@users.noreply.github.com>
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre2 }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "swig";
|
|
version = "4.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swig";
|
|
repo = "swig";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-VlUsiRZLScmbC7hZDzKqUr9481YXVwo0eXT/jy6Fda8=";
|
|
};
|
|
|
|
PCRE_CONFIG = "${pcre2.dev}/bin/pcre-config";
|
|
nativeBuildInputs = [ autoconf automake libtool bison ];
|
|
buildInputs = [ pcre2 ];
|
|
|
|
configureFlags = [ "--without-tcl" ];
|
|
|
|
# Disable ccache documentation as it needs yodl
|
|
postPatch = ''
|
|
sed -i '/man1/d' CCache/Makefile.in
|
|
'';
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
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;
|
|
};
|
|
})
|