nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 39 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre2 }: 2 3stdenv.mkDerivation (finalAttrs: { 4 pname = "swig"; 5 version = "4.2.1"; 6 7 src = fetchFromGitHub { 8 owner = "swig"; 9 repo = "swig"; 10 rev = "v${finalAttrs.version}"; 11 hash = "sha256-VlUsiRZLScmbC7hZDzKqUr9481YXVwo0eXT/jy6Fda8="; 12 }; 13 14 PCRE_CONFIG = "${pcre2.dev}/bin/pcre-config"; 15 nativeBuildInputs = [ autoconf automake libtool bison ]; 16 buildInputs = [ pcre2 ]; 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 = { 30 changelog = "https://github.com/swig/swig/blob/${finalAttrs.src.rev}/CHANGES.current"; 31 description = "Interface compiler that connects C/C++ code to higher-level languages"; 32 homepage = "https://swig.org/"; 33 # Different types of licenses available: https://www.swig.org/Release/LICENSE . 34 license = lib.licenses.gpl3Plus; 35 maintainers = with lib.maintainers; [ orivej ]; 36 mainProgram = "swig"; 37 platforms = with lib.platforms; linux ++ darwin; 38 }; 39})