2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchgit, mpfr, m4, binutils, emacs, zlib, which
|
2022-08-14 13:14:54 +01:00
|
|
|
, texinfo, libX11, xorgproto, libXi, gmp, readline
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXext, libXt, libXaw, libXmu } :
|
2017-01-03 17:01:02 +00:00
|
|
|
|
|
|
|
assert stdenv ? cc ;
|
|
|
|
assert stdenv.cc.isGNU ;
|
|
|
|
assert stdenv.cc ? libc ;
|
|
|
|
assert stdenv.cc.libc != null ;
|
|
|
|
|
2022-08-14 13:14:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gcl";
|
2022-08-14 13:14:54 +01:00
|
|
|
version = "2.6.13pre124";
|
2017-01-03 17:01:02 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2022-08-14 13:14:54 +01:00
|
|
|
sha256 = "sha256-e4cUQlNSfdz+B3urlZ82pf7fTc6aoloUyDDorAUi5kc=";
|
2018-12-01 17:07:00 +00:00
|
|
|
url = "https://git.savannah.gnu.org/r/gcl.git";
|
2022-08-14 13:14:54 +01:00
|
|
|
rev = "refs/tags/Version_${builtins.replaceStrings ["."] ["_"] version}";
|
2017-01-03 17:01:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e 's/<= obj-date/<= (if (= 0 obj-date) 1 obj-date)/' -i lsp/make.lisp
|
|
|
|
'';
|
|
|
|
|
|
|
|
sourceRoot = "gcl/gcl";
|
|
|
|
|
2022-08-14 13:14:54 +01:00
|
|
|
# breaks when compiling in parallel
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2017-01-03 17:01:02 +00:00
|
|
|
patches = [];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
mpfr m4 binutils emacs gmp
|
2018-12-31 03:40:47 +00:00
|
|
|
libX11 xorgproto libXi
|
|
|
|
libXext libXt libXaw libXmu
|
2022-08-14 13:14:54 +01:00
|
|
|
zlib which texinfo readline
|
2017-01-03 17:01:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-ansi"
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" "bindnow" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GNU Common Lisp compiler working via GCC";
|
2021-01-22 11:25:31 +00:00
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = lib.platforms.linux;
|
2017-01-03 17:01:02 +00:00
|
|
|
};
|
|
|
|
}
|