diff options
author | Vincent Ambo <Vincent Ambo> | 2020-01-09T01·00+0000 |
---|---|---|
committer | Vincent Ambo <Vincent Ambo> | 2020-01-09T01·00+0000 |
commit | f8519aefef8eb82cb6859a7c4607894c0b4f81ad (patch) | |
tree | d6a80574e3234a0d0617a409d6fcec0d610b67d4 /third_party | |
parent | e8d0488367547e960f210b8443e924b56e4dc743 (diff) |
feat(third_party/lisp): Add derivation for cffi r/357
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/lisp/cffi.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/lisp/cffi.nix b/third_party/lisp/cffi.nix new file mode 100644 index 000000000000..556dee0676c0 --- /dev/null +++ b/third_party/lisp/cffi.nix @@ -0,0 +1,32 @@ +# CFFI purports to be the Common Foreign Function Interface. +{ pkgs, ... }: + +let src = builtins.fetchGit { + url = "https://github.com/cffi/cffi.git"; + rev = "5e838bf46d0089c43ebd3ea014a207c403e29c61"; +}; +in pkgs.nix.buildLisp.library { + name = "cffi"; + deps = with pkgs.third_party.lisp; [ + alexandria + asdf + babel + trivial-features + 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" + ]; +} |