about summary refs log tree commit diff
path: root/third_party/lisp/lisp-binary.nix
blob: 8deba4546fe6e2fc693a1c2b46359c7120758339 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# A library to easily read and write complex binary formats.
{ depot, pkgs, ... }:

let
  src = pkgs.fetchFromGitHub {
    owner = "j3pic";
    repo = "lisp-binary";
    rev = "052df578900dea59bf951e0a6749281fa73432e4";
    sha256 = "1i1s5g01aimfq6lndcl1pnw7ly5hdh0wmjp2dj9cjjwbkz9lnwcf";
  };
in
depot.nix.buildLisp.library {
  name = "lisp-binary";

  deps = with depot.third_party.lisp; [
    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"
    "types.lisp"
  ];

  brokenOn = [
    "ecl" # dynamic cffi
  ];
}