2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cmucl-binary";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "21d";
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://common-lisp.net/project/cmucl/downloads/release/"
|
|
|
|
+ finalAttrs.version + "/cmucl-${finalAttrs.version}-x86-linux.tar.bz2";
|
|
|
|
hash = "sha256-RdctcqPTtQh1Yb3BrpQ8jtRFQn85OcwOt1l90H6xDZs=";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://common-lisp.net/project/cmucl/downloads/release/"
|
|
|
|
+ finalAttrs.version + "/cmucl-${finalAttrs.version}-x86-linux.extra.tar.bz2";
|
|
|
|
hash = "sha256-zEmiW3m5VPpFgPxV1WJNCqgYRlHMovtaMXcgXyNukls=";
|
|
|
|
})];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -pv $out $doc/share $man
|
|
|
|
mv bin lib -t $out
|
|
|
|
mv -v doc -t $doc/share
|
|
|
|
installManPage man/man1/*
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
$out/bin/lisp
|
|
|
|
'';
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.cons.org/cmucl/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CMU implementation of Common Lisp";
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.publicDomain;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = lib.teams.lisp.members;
|
2022-10-30 15:09:59 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
})
|