about summary refs log tree commit diff
path: root/third_party/lisp/cl-prevalence.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lisp/cl-prevalence.nix')
-rw-r--r--third_party/lisp/cl-prevalence.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/lisp/cl-prevalence.nix b/third_party/lisp/cl-prevalence.nix
new file mode 100644
index 000000000000..c024db0924e2
--- /dev/null
+++ b/third_party/lisp/cl-prevalence.nix
@@ -0,0 +1,29 @@
+# cl-prevalence is an implementation of object prevalence for CL (i.e.
+# an in-memory database)
+{ depot, ... }:
+
+let src = depot.third_party.fetchFromGitHub {
+  owner = "40ants";
+  repo = "cl-prevalence";
+  rev = "da3ed6c4594b1c2fca90c178c1993973c4bf16c9";
+  sha256 = "0bq905hv1626dl6b7s0zn4lbdh608g1pxaljl1fda6pwp9hmj95a";
+};
+in depot.nix.buildLisp.library {
+  name = "cl-prevalence";
+
+  deps = with depot.third_party.lisp; [
+    s-xml
+    s-sysdeps
+  ];
+
+  srcs = map (f: src + ("/src/" + f)) [
+    "package.lisp"
+    "serialization/serialization.lisp"
+    "serialization/xml.lisp"
+    "serialization/sexp.lisp"
+    "prevalence.lisp"
+    "managed-prevalence.lisp"
+    "master-slave.lisp"
+    "blob.lisp"
+  ];
+}