blob: d96e78942b158b3dbbe1e9e0476e30a84347f5bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
lib,
stdenv,
fetchurl,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cmucl-binary";
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;
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 = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
$out/bin/lisp
'';
meta = {
description = "CMU implementation of Common Lisp";
homepage = "http://www.cons.org/cmucl/";
license = lib.licenses.publicDomain;
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.
'';
mainProgram = "lisp";
teams = [ lib.teams.lisp ];
platforms = [
"i686-linux"
"x86_64-linux"
];
};
})
|