-
Notifications
You must be signed in to change notification settings - Fork 6
/
default.nix
53 lines (42 loc) · 995 Bytes
/
default.nix
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
{ pkgs, lib, stdenv, abcl, ccl, clisp, clasp, ecl, sbcl, ... }:
let
mkSpec = spec@{
pkg
, program ? pkg.pname
, flags ? ""
, asdf ? asdf_3_3_6
}: { inherit pkg program flags asdf; };
asdf_3_3_6 = pkgs.stdenv.mkDerivation rec {
pname = "asdf";
version = "3.3.6";
src = pkgs.fetchzip {
url = "https://gitlab.common-lisp.net/asdf/asdf/-/archive/${version}/asdf-${version}.tar.gz";
hash = "sha256-GCmGUMLniPakjyL/D/aEI93Y6bBxjdR+zxXdSgc9NWo=";
};
installPhase = ''
cp build/asdf.lisp $out
'';
};
abclSpec = mkSpec {
pkg = abcl;
};
eclSpec = mkSpec {
pkg = ecl;
};
cclSpec = mkSpec {
pkg = ccl;
};
sbclSpec = mkSpec {
pkg = sbcl;
flags = "--dynamic-space-size 4GiB";
};
clispSpec = mkSpec {
pkg = clisp;
flags = "-E UTF-8";
};
claspSpec = mkSpec {
pkg = clasp;
};
in pkgs.callPackage ./nix-cl.nix {
inherit abclSpec eclSpec cclSpec claspSpec clispSpec sbclSpec;
}