about summary refs log tree commit diff
path: root/third_party/lisp/lisp-binary.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lisp/lisp-binary.nix')
-rw-r--r--third_party/lisp/lisp-binary.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/third_party/lisp/lisp-binary.nix b/third_party/lisp/lisp-binary.nix
new file mode 100644
index 000000000000..296112cc9e9a
--- /dev/null
+++ b/third_party/lisp/lisp-binary.nix
@@ -0,0 +1,33 @@
+# A library to easily read and write complex binary formats.
+{ depot, pkgs, ... }:
+
+let
+  src = pkgs.srcOnly pkgs.lispPackages.lisp-binary;
+in
+depot.nix.buildLisp.library {
+  name = "lisp-binary";
+
+  deps = with depot.third_party.lisp; [
+    alexandria
+    cffi
+    closer-mop
+    flexi-streams
+    moptilities
+    quasiquote_2
+  ];
+
+  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" # TODO(sterni): disable conditionally cffi for ECL
+  ];
+}