2020-01-22 22:40:37 +01:00
|
|
|
# A library to easily read and write complex binary formats.
|
2021-04-10 02:13:18 +02:00
|
|
|
{ depot, pkgs, ... }:
|
2020-01-22 22:40:37 +01:00
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
let
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "j3pic";
|
|
|
|
repo = "lisp-binary";
|
|
|
|
rev = "052df578900dea59bf951e0a6749281fa73432e4";
|
|
|
|
sha256 = "1i1s5g01aimfq6lndcl1pnw7ly5hdh0wmjp2dj9cjjwbkz9lnwcf";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
depot.nix.buildLisp.library {
|
2020-01-22 22:40:37 +01:00
|
|
|
name = "lisp-binary";
|
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-01-22 22:40:37 +01:00
|
|
|
cffi
|
|
|
|
quasiquote_2
|
|
|
|
moptilities
|
|
|
|
flexi-streams
|
|
|
|
closer-mop
|
|
|
|
];
|
|
|
|
|
|
|
|
srcs = map (f: src + ("/" + f)) [
|
|
|
|
"utils.lisp"
|
|
|
|
"integer.lisp"
|
|
|
|
"float.lisp"
|
|
|
|
"simple-bit-stream.lisp"
|
|
|
|
"reverse-stream.lisp"
|
|
|
|
"binary-1.lisp"
|
|
|
|
"binary-2.lisp"
|
2021-04-12 00:17:41 +02:00
|
|
|
"types.lisp"
|
2020-01-22 22:40:37 +01:00
|
|
|
];
|
2021-08-09 02:47:07 +02:00
|
|
|
|
|
|
|
brokenOn = [
|
|
|
|
"ecl" # dynamic cffi
|
|
|
|
];
|
2020-01-22 22:40:37 +01:00
|
|
|
}
|