about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <Vincent Ambo>2020-01-09T01·05+0000
committerVincent Ambo <Vincent Ambo>2020-01-09T01·07+0000
commit7edbcf9c04b121913198a436d2b1843107557c3c (patch)
tree3b6de0218801ab364025e458a8190601cec9f2e2 /third_party
parentf8519aefef8eb82cb6859a7c4607894c0b4f81ad (diff)
feat(third_party/lisp): Add derivation for bordeaux-threads r/358
Diffstat (limited to 'third_party')
-rw-r--r--third_party/lisp/bordeaux-threads.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/lisp/bordeaux-threads.nix b/third_party/lisp/bordeaux-threads.nix
new file mode 100644
index 000000000000..f1e458f4dc68
--- /dev/null
+++ b/third_party/lisp/bordeaux-threads.nix
@@ -0,0 +1,20 @@
+# This library is meant to make writing portable multi-threaded apps
+# in Common Lisp simple.
+{ pkgs, ... }:
+
+let src = builtins.fetchGit {
+  url = "https://github.com/sionescu/bordeaux-threads.git";
+  rev = "499b6d3f0ce635417d6096acf0a671d8bf3f6e5f";
+};
+in pkgs.nix.buildLisp.library {
+  name = "bordeaux-threads";
+  deps = [ pkgs.third_party.lisp.alexandria ];
+
+  srcs = map (f: src + ("/src/" + f)) [
+    "pkgdcl.lisp"
+    "bordeaux-threads.lisp"
+    "impl-sbcl.lisp"
+    "condition-variables.lisp"
+    "default-implementations.lisp"
+  ];
+}