2009-11-05 21:53:37 +00:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
buildInputs = with a; [
|
2010-07-06 17:48:03 +01:00
|
|
|
mpfr m4 binutils emacs gmp
|
2009-11-06 09:44:03 +00:00
|
|
|
libX11 xproto inputproto libXi
|
|
|
|
libXext xextproto libXt libXaw libXmu
|
2010-07-09 04:34:29 +01:00
|
|
|
zlib which texinfo texLive
|
2009-11-05 21:53:37 +00:00
|
|
|
];
|
|
|
|
in
|
2010-07-07 19:44:57 +01:00
|
|
|
|
2010-08-03 11:55:32 +01:00
|
|
|
(
|
2010-07-07 19:44:57 +01:00
|
|
|
assert a.stdenv ? gcc ;
|
|
|
|
assert a.stdenv.gcc ? gcc ;
|
|
|
|
assert a.stdenv.gcc ? libc ;
|
|
|
|
assert a.stdenv.gcc.gcc != null ;
|
2010-07-07 21:19:48 +01:00
|
|
|
assert a.stdenv.gcc.libc != null ;
|
2010-07-07 19:44:57 +01:00
|
|
|
|
2009-11-05 21:53:37 +00:00
|
|
|
rec {
|
2014-02-02 17:36:22 +00:00
|
|
|
src = a.fetchurl {
|
|
|
|
sha256 = "1vsicv81ml7d92c87bckgkpvcshi6hzdnj44k0j6zs5mj8pzp8br";
|
|
|
|
url="http://gnu.spinellicreations.com/gcl/gcl-2.6.10.tar.gz";
|
2009-11-06 09:44:03 +00:00
|
|
|
};
|
2009-11-05 21:53:37 +00:00
|
|
|
|
2014-02-02 17:36:22 +00:00
|
|
|
name = "gcl-2.6.10";
|
2009-11-05 21:53:37 +00:00
|
|
|
inherit buildInputs;
|
2010-07-06 21:27:48 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-ansi"
|
|
|
|
];
|
2009-11-05 21:53:37 +00:00
|
|
|
|
2010-07-06 20:59:10 +01: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 09:44:03 +00:00
|
|
|
preBuild = a.fullDepEntry (''
|
2010-07-06 17:48:03 +01:00
|
|
|
sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure
|
|
|
|
sed -re "s@if test -d /proc/self @if false @" -i configure
|
|
|
|
sed -re 's^([ \t])cpp ^\1cpp -I${a.stdenv.gcc.gcc}/include -I${a.stdenv.gcc.libc}/include ^g' -i makefile
|
2010-07-09 04:34:29 +01:00
|
|
|
'') ["minInit" "doUnpack" "addInputs"];
|
2009-11-06 09:44:03 +00:00
|
|
|
|
2009-11-05 21:53:37 +00:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-07-06 21:27:48 +01:00
|
|
|
phaseNames = ["setVars" "doUnpack" "preBuild"
|
2010-07-06 17:48:03 +01:00
|
|
|
"doConfigure" "doMakeInstall"];
|
2010-08-03 11:55:32 +01:00
|
|
|
}) // {
|
2009-11-05 21:53:37 +00:00
|
|
|
meta = {
|
|
|
|
description = "GNU Common Lisp compiler working via GCC";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
2010-08-03 11:55:32 +01:00
|
|
|
linux;
|
2009-11-05 21:53:37 +00:00
|
|
|
};
|
|
|
|
}
|