2021-01-22 12:25:31 +01:00
|
|
|
{lib, stdenv, fetchurl}:
|
2010-11-08 09:58:50 +01:00
|
|
|
|
|
|
|
let
|
2018-08-20 21:11:29 +02:00
|
|
|
inherit (stdenv.hostPlatform) system;
|
2017-04-21 00:32:02 +02:00
|
|
|
version = "21b";
|
2010-11-08 09:58:50 +01:00
|
|
|
downloadUrl = arch:
|
|
|
|
"http://common-lisp.net/project/cmucl/downloads/release/" +
|
|
|
|
"${version}/cmucl-${version}-${arch}.tar.bz2";
|
|
|
|
fetchDist = {arch, sha256}: fetchurl {
|
|
|
|
url = downloadUrl arch;
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
dist =
|
|
|
|
if system == "i686-linux" then fetchDist {
|
|
|
|
arch = "x86-linux";
|
2017-04-21 00:32:02 +02:00
|
|
|
sha256 = "13k3b5ygnbsq6n2i3r5i4ljw3r1qlskn2p5f4x9hrx6vfvbb3k7a";
|
2010-11-08 09:58:50 +01:00
|
|
|
}
|
|
|
|
else throw "Unsupported platform for cmucl.";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "cmucl-binary";
|
|
|
|
inherit version;
|
2010-11-08 09:58:50 +01:00
|
|
|
|
|
|
|
buildCommand = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2010-11-08 09:58:50 +01:00
|
|
|
tar -C $out -xjf ${dist}
|
2014-12-17 19:11:30 +01:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
2010-11-08 09:58:50 +01:00
|
|
|
$out/bin/lisp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The CMU implementation of Common Lisp";
|
|
|
|
longDescription = ''
|
|
|
|
CMUCL is a free implementation of the Common Lisp programming language
|
|
|
|
which runs on most major Unix platforms. It mainly conforms to the
|
|
|
|
ANSI Common Lisp standard.
|
|
|
|
'';
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.free; # public domain
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.cons.org/cmucl/";
|
2021-01-22 12:25:31 +01:00
|
|
|
maintainers = [lib.maintainers.tohl];
|
|
|
|
platforms = lib.platforms.linux;
|
2010-11-08 09:58:50 +01:00
|
|
|
};
|
|
|
|
}
|