2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, mpfr, m4, binutils, emacs, zlib, which
|
2022-08-21 13:32:41 +00:00
|
|
|
, texinfo, libX11, xorgproto, libXi, gmp, readline
|
2020-04-24 23:36:52 +00:00
|
|
|
, libXext, libXt, libXaw, libXmu } :
|
|
|
|
|
|
|
|
assert stdenv ? cc ;
|
|
|
|
assert stdenv.cc.isGNU ;
|
|
|
|
assert stdenv.cc ? libc ;
|
|
|
|
assert stdenv.cc.libc != null ;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gcl";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.6.13pre124";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-e4cUQlNSfdz+B3urlZ82pf7fTc6aoloUyDDorAUi5kc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://git.savannah.gnu.org/r/gcl.git";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/Version_${builtins.replaceStrings ["."] ["_"] version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e 's/<= obj-date/<= (if (= 0 obj-date) 1 obj-date)/' -i lsp/make.lisp
|
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
sourceRoot = "${src.name}/gcl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
# breaks when compiling in parallel
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
patches = [];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
mpfr m4 binutils emacs gmp
|
|
|
|
libX11 xorgproto libXi
|
|
|
|
libXext libXt libXaw libXmu
|
2022-08-21 13:32:41 +00:00
|
|
|
zlib which texinfo readline
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-ansi"
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" "bindnow" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GNU Common Lisp compiler working via GCC";
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = lib.teams.lisp.members;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|