at 16.09-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl, boost, tcl }: 2 3stdenv.mkDerivation rec { 4 name = "swig-1.3.40"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/swig/${name}.tar.gz"; 8 sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r"; 9 }; 10 11 doCheck = !stdenv.isCygwin; 12 # 'make check' uses boost and tcl 13 buildInputs = stdenv.lib.optionals doCheck [ boost tcl ]; 14 15 configureFlags = "--disable-ccache"; 16 17 meta = { 18 description = "Interface compiler that connects C/C++ code to higher-level languages"; 19 20 longDescription = '' 21 SWIG is an interface compiler that connects programs written in C and 22 C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It 23 works by taking the declarations found in C/C++ header files and using 24 them to generate the wrapper code that scripting languages need to 25 access the underlying C/C++ code. In addition, SWIG provides a variety 26 of customization features that let you tailor the wrapping process to 27 suit your application. 28 ''; 29 30 homepage = http://swig.org/; 31 32 # Licensing is a mess: http://www.swig.org/Release/LICENSE . 33 license = "BSD-style"; 34 35 platforms = stdenv.lib.platforms.all; 36 37 maintainers = [ ]; 38 }; 39}