at 15.09-beta 48 lines 1.2 kB view raw
1{stdenv, fetchurl 2, libtool, autoconf, automake 3, gmp, mpfr, libffi 4, noUnicode ? false, 5}: 6let 7 s = # Generated upstream information 8 rec { 9 baseName="ecl"; 10 version="15.3.7"; 11 name="${baseName}-${version}"; 12 hash="13wlxkd5prm93gcm2dhm7v52fl803yx93aa97lrb39z0y6xzziid"; 13 url="mirror://sourceforge/project/ecls/ecls/15.3/ecl-15.3.7.tgz"; 14 sha256="13wlxkd5prm93gcm2dhm7v52fl803yx93aa97lrb39z0y6xzziid"; 15 }; 16 buildInputs = [ 17 libtool autoconf automake 18 ]; 19 propagatedBuildInputs = [ 20 libffi gmp mpfr 21 ]; 22in 23stdenv.mkDerivation { 24 inherit (s) name version; 25 inherit buildInputs propagatedBuildInputs; 26 src = fetchurl { 27 inherit (s) url sha256; 28 }; 29 configureFlags = [ 30 "--enable-threads" 31 "--with-gmp-prefix=${gmp}" 32 "--with-libffi-prefix=${libffi}" 33 ] 34 ++ 35 (stdenv.lib.optional (! noUnicode) 36 "--enable-unicode") 37 ; 38 postInstall = '' 39 sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config 40 ''; 41 meta = { 42 inherit (s) version; 43 description = "Lisp implementation aiming to be small, fast and easy to embed"; 44 license = stdenv.lib.licenses.mit ; 45 maintainers = [stdenv.lib.maintainers.raskin]; 46 platforms = stdenv.lib.platforms.linux; 47 }; 48}