2020-01-22 22:40:37 +01:00
|
|
|
# A library to easily read and write complex binary formats.
|
2020-02-21 13:47:29 +01:00
|
|
|
{ depot, ... }:
|
2020-01-22 22:40:37 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
let src = depot.third_party.fetchFromGitHub {
|
2020-01-22 22:40:37 +01:00
|
|
|
owner = "j3pic";
|
|
|
|
repo = "lisp-binary";
|
|
|
|
rev = "1aefc8618b7734f68697ddf59bc93cb8522aa0bf";
|
|
|
|
sha256 = "1hflzn3mjp32jz9fxx9wayp3c3x58s77cgjfbs06nrynqkv0c6df";
|
|
|
|
};
|
2020-02-21 13:47:29 +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; [
|
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"
|
|
|
|
];
|
|
|
|
}
|