about summary refs log tree commit diff
path: root/third_party/lisp/cl-fad.nix
blob: 905e0821cac795892df5df3625d7ee8b1437e0b5 (plain) (blame)
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
# Portable pathname library
{ depot, pkgs, ...}:

with depot.nix;

let src = pkgs.fetchFromGitHub {
  owner = "edicl";
  repo = "cl-fad";
  rev = "13cbffe08fc660041359302f4057f8fc20d09402"; # 2021-01-10
  sha256 = "049laj8an6g9bh0m0cn0bxhq313p8qq1h37cil15l66147ad8slc";
};
in buildLisp.library {
  name = "cl-fad";

  deps = with depot.third_party.lisp; [
    alexandria
    bordeaux-threads
    {
      sbcl = buildLisp.bundled "sb-posix";
    }
  ];

  srcs = map (f: src + ("/" + f)) [
    "packages.lisp"
  ] ++ [
    { ccl =  "${src}/openmcl.lisp"; }
  ] ++ map (f: src + ("/" + f)) [
    "fad.lisp"
    "path.lisp"
    "temporary-files.lisp"
  ];
}