1{ stdenv, fetchgit, makeWrapper, gmp, gcc }:
2
3stdenv.mkDerivation rec {
4 v = "1.1.9";
5 name = "mkcl-${v}";
6
7 src = fetchgit {
8 url = "https://github.com/jcbeaudoin/mkcl.git";
9 rev = "86768cc1dfc2cc9caa1fe9696584bb25ea6c1429";
10 sha256 = "1gsvjp9xlnjccg0idi8x8gzkn6hlrqia95jh3zx7snm894503mf1";
11 };
12
13 buildInputs = [ makeWrapper ];
14 propagatedBuildInputs = [ gmp ];
15
16 hardeningDisable = [ "format" ];
17
18 configureFlags = [
19 "GMP_CFLAGS=-I${gmp.dev}/include"
20 "GMP_LDFLAGS=-L${gmp.out}/lib"
21 ];
22
23 postInstall = ''
24 wrapProgram $out/bin/mkcl --prefix PATH : "${gcc}/bin"
25 '';
26
27 meta = {
28 description = "ANSI Common Lisp Implementation";
29 homepage = https://common-lisp.net/project/mkcl/;
30 license = stdenv.lib.licenses.lgpl2Plus;
31 platforms = stdenv.lib.platforms.linux;
32 maintainers = [stdenv.lib.maintainers.tohl];
33 };
34}
35