2020-01-09 02:00:11 +01:00
|
|
|
# CFFI purports to be the Common Foreign Function Interface.
|
2020-02-21 13:47:29 +01:00
|
|
|
{ depot, ... }:
|
2020-01-09 02:00:11 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
with depot.nix;
|
2020-01-09 02:00:11 +01:00
|
|
|
let src = builtins.fetchGit {
|
|
|
|
url = "https://github.com/cffi/cffi.git";
|
2020-11-21 18:22:54 +01:00
|
|
|
rev = "a49ff36a95cb62ffa6cb069d98378d665769926b";
|
2020-01-09 02:00:11 +01:00
|
|
|
};
|
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";
|
|
|
|
}
|
|
|
|
] ++ 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"
|
|
|
|
];
|
|
|
|
}
|