Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 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="16.0.0"; 11 name="${baseName}-${version}"; 12 hash="0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil"; 13 url="https://common-lisp.net/project/ecl/files/release/16.0.0/ecl-16.0.0.tgz"; 14 sha256="0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil"; 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}