about summary refs log tree commit diff
path: root/third_party/lisp/trivial-garbage.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lisp/trivial-garbage.nix')
-rw-r--r--third_party/lisp/trivial-garbage.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/lisp/trivial-garbage.nix b/third_party/lisp/trivial-garbage.nix
new file mode 100644
index 000000000000..e5b3550de7ba
--- /dev/null
+++ b/third_party/lisp/trivial-garbage.nix
@@ -0,0 +1,12 @@
+# trivial-garbage provides a portable API to finalizers, weak
+# hash-tables and weak pointers
+{ depot, ... }:
+
+let src = builtins.fetchGit {
+  url = "https://github.com/trivial-garbage/trivial-garbage.git";
+  rev = "dbc8e35acb0176b9a14fdc1027f5ebea93435a84";
+};
+in depot.nix.buildLisp.library {
+  name = "trivial-garbage";
+  srcs = [ (src + "/trivial-garbage.lisp") ];
+}