at 18.03-beta 44 lines 1.2 kB view raw
1{ stdenv, fetchurl, mpfr, m4, binutils, fetchcvs, emacs, zlib, which 2, texinfo, libX11, xproto, inputproto, libXi, gmp 3, libXext, xextproto, libXt, libXaw, libXmu } : 4 5assert stdenv ? cc ; 6assert stdenv.cc.isGNU ; 7assert stdenv.cc ? libc ; 8assert stdenv.cc.libc != null ; 9 10stdenv.mkDerivation rec { 11 name = "gcl-${version}"; 12 version = "2.6.12"; 13 14 src = fetchurl { 15 sha256 = "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f"; 16 url = "http://gnu.spinellicreations.com/gcl/${name}.tar.gz"; 17 }; 18 19 patches = [(fetchurl { 20 url = https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-lisp/gcl/files/gcl-2.6.12-gcc5.patch; 21 sha256 = "00jbsn0qp8ki2w7dx8caha7g2hr9076xa6bg48j3qqqncff93zdh"; 22 })]; 23 24 buildInputs = [ 25 mpfr m4 binutils emacs gmp 26 libX11 xproto inputproto libXi 27 libXext xextproto libXt libXaw libXmu 28 zlib which texinfo 29 ]; 30 31 configureFlags = [ 32 "--enable-ansi" 33 ]; 34 35 hardeningDisable = [ "pic" "bindnow" ]; 36 37 NIX_CFLAGS_COMPILE = "-fgnu89-inline"; 38 39 meta = { 40 description = "GNU Common Lisp compiler working via GCC"; 41 maintainers = [ stdenv.lib.maintainers.raskin ]; 42 platforms = stdenv.lib.platforms.linux; 43 }; 44}