about summary refs log tree commit diff
path: root/third_party/lisp/trivial-backtrace.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-15T20·58+0300
committerclbot <clbot@tvl.fyi>2021-12-15T21·14+0000
commit75ca24c60a57ab894da4d404755b8b4094284ad8 (patch)
treeb6eac4b7035b3c73f0de8d9a26b04b85386d87e3 /third_party/lisp/trivial-backtrace.nix
parentfa73841a4b8bf305e375bdebf0c5b10b3fec4113 (diff)
chore(3p/lisp): use nixpkgs sources for trivial-backtrace r/3257
Change-Id: If4ee3f9a0afea74759493de14c7f672714739f45
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4341
Autosubmit: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party/lisp/trivial-backtrace.nix')
-rw-r--r--third_party/lisp/trivial-backtrace.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/lisp/trivial-backtrace.nix b/third_party/lisp/trivial-backtrace.nix
new file mode 100644
index 000000000000..27949e8be1e4
--- /dev/null
+++ b/third_party/lisp/trivial-backtrace.nix
@@ -0,0 +1,15 @@
+# Imported from http://common-lisp.net/project/trivial-backtrace/trivial-backtrace.git
+{ depot, pkgs, ... }:
+
+let src = with pkgs; srcOnly lispPackages.trivial-backtrace;
+in depot.nix.buildLisp.library {
+  name = "trivial-backtrace";
+
+  srcs = map (f: src + ("/dev/" + f)) [
+    "packages.lisp"
+    "utilities.lisp"
+    "backtrace.lisp"
+    "map-backtrace.lisp"
+    "fallback.lisp"
+  ];
+}