2020-01-09 02:00:11 +01:00
|
|
|
# CFFI purports to be the Common Foreign Function Interface.
|
2021-12-14 22:32:27 +01:00
|
|
|
{ depot, pkgs, ... }:
|
2020-01-09 02:00:11 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
with depot.nix;
|
2021-12-14 22:32:27 +01:00
|
|
|
let src = with pkgs; srcOnly lispPackages.cffi;
|
2020-01-27 00:59:07 +01:00
|
|
|
in buildLisp.library {
|
2020-01-09 02:00:11 +01:00
|
|
|
name = "cffi";
|
2020-02-21 13:47:29 +01:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-01-09 02:00:11 +01:00
|
|
|
alexandria
|
|
|
|
babel
|
|
|
|
trivial-features
|
2020-01-27 00:59:07 +01:00
|
|
|
(buildLisp.bundled "asdf")
|
2020-01-09 02:00:11 +01:00
|
|
|
];
|
|
|
|
|
2021-08-09 02:47:07 +02:00
|
|
|
srcs = [
|
|
|
|
{
|
|
|
|
ecl = src + "/src/cffi-ecl.lisp";
|
|
|
|
sbcl = src + "/src/cffi-sbcl.lisp";
|
2021-08-13 22:24:50 +02:00
|
|
|
ccl = src + "/src/cffi-openmcl.lisp";
|
2021-08-09 02:47:07 +02:00
|
|
|
}
|
|
|
|
] ++ map (f: src + ("/src/" + f)) [
|
2020-01-09 02:00:11 +01:00
|
|
|
"package.lisp"
|
|
|
|
"utils.lisp"
|
|
|
|
"libraries.lisp"
|
|
|
|
"early-types.lisp"
|
|
|
|
"types.lisp"
|
|
|
|
"enum.lisp"
|
|
|
|
"strings.lisp"
|
|
|
|
"structures.lisp"
|
|
|
|
"functions.lisp"
|
|
|
|
"foreign-vars.lisp"
|
|
|
|
"features.lisp"
|
|
|
|
];
|
|
|
|
}
|