nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 36 lines 967 B view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }: 2 3stdenv.mkDerivation rec { 4 pname = "swig"; 5 version = "3.0.12"; 6 7 src = fetchFromGitHub { 8 owner = "swig"; 9 repo = "swig"; 10 rev = "rel-${version}"; 11 sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n"; 12 }; 13 14 PCRE_CONFIG = "${pcre.dev}/bin/pcre-config"; 15 nativeBuildInputs = [ autoconf automake libtool bison ]; 16 buildInputs = [ pcre ]; 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 = with lib; { 30 description = "An interface compiler that connects C/C++ code to higher-level languages"; 31 homepage = "https://swig.org/"; 32 # Different types of licenses available: http://www.swig.org/Release/LICENSE . 33 license = licenses.gpl3Plus; 34 platforms = with platforms; linux ++ darwin; 35 }; 36}