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.nix9
1 files changed, 9 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..74224df60d91
--- /dev/null
+++ b/third_party/lisp/trivial-garbage.nix
@@ -0,0 +1,9 @@
+# trivial-garbage provides a portable API to finalizers, weak
+# hash-tables and weak pointers
+{ depot, pkgs, ... }:
+
+let src = with pkgs; srcOnly lispPackages.trivial-garbage;
+in depot.nix.buildLisp.library {
+  name = "trivial-garbage";
+  srcs = [ (src + "/trivial-garbage.lisp") ];
+}