2009-11-05 13:53:37 -08:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
buildInputs = with a; [
|
2010-07-06 09:48:03 -07:00
|
|
|
mpfr m4 binutils emacs gmp
|
2009-11-06 01:44:03 -08:00
|
|
|
libX11 xproto inputproto libXi
|
|
|
|
libXext xextproto libXt libXaw libXmu
|
2010-07-08 20:34:29 -07:00
|
|
|
zlib which texinfo texLive
|
2009-11-05 13:53:37 -08:00
|
|
|
];
|
|
|
|
in
|
2010-07-07 11:44:57 -07:00
|
|
|
|
2010-08-03 03:55:32 -07:00
|
|
|
(
|
2014-12-17 10:11:30 -08:00
|
|
|
assert a.stdenv ? cc ;
|
2015-05-11 14:37:53 -07:00
|
|
|
assert a.stdenv.cc.isGNU ;
|
2014-12-17 10:11:30 -08:00
|
|
|
assert a.stdenv.cc ? libc ;
|
|
|
|
assert a.stdenv.cc.libc != null ;
|
2010-07-07 11:44:57 -07:00
|
|
|
|
2009-11-05 13:53:37 -08:00
|
|
|
rec {
|
2014-02-02 09:36:22 -08:00
|
|
|
src = a.fetchurl {
|
2014-11-03 13:01:51 -08:00
|
|
|
sha256 = "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f";
|
|
|
|
url="http://gnu.spinellicreations.com/gcl/${name}.tar.gz";
|
2009-11-06 01:44:03 -08:00
|
|
|
};
|
2009-11-05 13:53:37 -08:00
|
|
|
|
2014-11-03 13:01:51 -08:00
|
|
|
name = "gcl-2.6.12";
|
2009-11-05 13:53:37 -08:00
|
|
|
inherit buildInputs;
|
2010-07-06 13:27:48 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-ansi"
|
|
|
|
];
|
2009-11-05 13:53:37 -08:00
|
|
|
|
2010-07-06 12:59:10 -07:00
|
|
|
# Upstream bug submitted - http://savannah.gnu.org/bugs/index.php?30371
|
|
|
|
# $TMPDIR must have no extension
|
|
|
|
setVars = a.noDepEntry ''
|
|
|
|
export TMPDIR="''${TMPDIR:-''${TMP:-''${TEMP}}}/tmp-for-gcl"
|
|
|
|
mkdir -p "$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
2009-11-06 01:44:03 -08:00
|
|
|
preBuild = a.fullDepEntry (''
|
2010-07-06 09:48:03 -07:00
|
|
|
sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure
|
|
|
|
sed -re "s@if test -d /proc/self @if false @" -i configure
|
2015-01-14 20:25:26 -08:00
|
|
|
sed -re 's^([ \t])cpp ^\1cpp -I${a.stdenv.cc.cc}/include -I${a.stdenv.cc.libc}/include ^g' -i makefile
|
2010-07-08 20:34:29 -07:00
|
|
|
'') ["minInit" "doUnpack" "addInputs"];
|
2009-11-06 01:44:03 -08:00
|
|
|
|
2009-11-05 13:53:37 -08:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-07-06 13:27:48 -07:00
|
|
|
phaseNames = ["setVars" "doUnpack" "preBuild"
|
2010-07-06 09:48:03 -07:00
|
|
|
"doConfigure" "doMakeInstall"];
|
2010-08-03 03:55:32 -07:00
|
|
|
}) // {
|
2009-11-05 13:53:37 -08:00
|
|
|
meta = {
|
|
|
|
description = "GNU Common Lisp compiler working via GCC";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
2010-08-03 03:55:32 -07:00
|
|
|
linux;
|
2009-11-05 13:53:37 -08:00
|
|
|
};
|
|
|
|
}
|