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
|
2022-12-12 12:23:56 +01:00
|
|
|
src = pkgs.srcOnly pkgs.lispPackages.lisp-binary;
|
2022-01-30 17:06:58 +01:00
|
|
|
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; [
|
2022-12-12 12:23:56 +01:00
|
|
|
alexandria
|
2020-01-22 22:40:37 +01:00
|
|
|
cffi
|
|
|
|
closer-mop
|
2022-12-12 12:23:56 +01:00
|
|
|
flexi-streams
|
|
|
|
moptilities
|
|
|
|
quasiquote_2
|
2020-01-22 22:40:37 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 = [
|
2022-12-12 12:23:56 +01:00
|
|
|
"ecl" # TODO(sterni): disable conditionally cffi for ECL
|
2021-08-09 02:47:07 +02:00
|
|
|
];
|
2020-01-22 22:40:37 +01:00
|
|
|
}
|