about summary refs log tree commit diff
path: root/third_party/lisp/cffi.nix
blob: a01dab892415dd84ae236ce3c4acff1b82c700fb (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
33
# CFFI purports to be the Common Foreign Function Interface.
{ pkgs, ... }:

with pkgs.nix;
let src = builtins.fetchGit {
  url = "https://github.com/cffi/cffi.git";
  rev = "5e838bf46d0089c43ebd3ea014a207c403e29c61";
};
in buildLisp.library {
  name = "cffi";
  deps = with pkgs.third_party.lisp; [
    alexandria
    babel
    trivial-features
    (buildLisp.bundled "asdf")
    (buildLisp.bundled "uiop")
  ];

  srcs = map (f: src + ("/src/" + f)) [
    "cffi-sbcl.lisp"
    "package.lisp"
    "utils.lisp"
    "libraries.lisp"
    "early-types.lisp"
    "types.lisp"
    "enum.lisp"
    "strings.lisp"
    "structures.lisp"
    "functions.lisp"
    "foreign-vars.lisp"
    "features.lisp"
  ];
}