2010-11-08 08:58:50 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv) system;
|
2015-10-01 21:00:36 +01:00
|
|
|
version = "21a";
|
2010-11-08 08:58:50 +00: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";
|
2015-10-01 21:00:36 +01:00
|
|
|
sha256 = "0w8dcaiasfd4fbj340zaf6wcjfgc4wzkvr24gbxa5rr3aw10rl02";
|
2010-11-08 08:58:50 +00:00
|
|
|
}
|
|
|
|
else throw "Unsupported platform for cmucl.";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cmucl-binary-${version}";
|
|
|
|
|
|
|
|
buildCommand = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2010-11-08 08:58:50 +00:00
|
|
|
tar -C $out -xjf ${dist}
|
2014-12-17 18:11:30 +00:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
2010-11-08 08:58:50 +00: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.
|
|
|
|
'';
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free; # public domain
|
2010-11-08 08:58:50 +00:00
|
|
|
homepage = http://www.cons.org/cmucl/;
|
2015-11-24 22:26:42 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.tohl];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-11-08 08:58:50 +00:00
|
|
|
};
|
|
|
|
}
|