about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-07-27T20·09+0200
committersterni <sternenseemann@systemli.org>2021-09-01T22·57+0000
commit281c09fae74b9120dca3fe1bf94d4c847c33dda9 (patch)
tree25b118ba1f9b41eafef8b55f51ba9850a958733c /third_party
parentc38873e2e4cf46664e0644e2deec3e5588469c41 (diff)
feat(3p/lisp/closure-common): init at 2018-09-09 r/2808
Change-Id: Ieec5470fe8fd54851b982c7a380185a3faeaa067
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3258
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/lisp/closure-common.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/third_party/lisp/closure-common.nix b/third_party/lisp/closure-common.nix
new file mode 100644
index 000000000000..de983dda3e06
--- /dev/null
+++ b/third_party/lisp/closure-common.nix
@@ -0,0 +1,38 @@
+{ depot, pkgs, ... }:
+
+let
+  src = pkgs.fetchFromGitHub {
+    owner = "sharplispers";
+    repo = "closure-common";
+    rev = "e3c5f5f454b72b01b89115e581c3c52a7e201e5c"; # 2018-09-09
+    sha256 = "0k5r2qxn122pxi301ijir3nayi9sg4d7yiy276l36qmzwhp4mg5n";
+  };
+
+  getSrcs = builtins.map (p: "${src}/${p}");
+in
+
+depot.nix.buildLisp.library {
+  name = "closure-common";
+
+  # feature specific file inclusions in closure-common.asd;
+  # including all relevant fails for SBCL, may not build with
+  # other implementations in this form.
+  srcs = getSrcs [
+    "closure-common.asd"
+    "package.lisp"
+    "definline.lisp"
+    "characters.lisp"
+    "syntax.lisp"
+    "encodings.lisp"
+    "encodings-data.lisp"
+    "xstream.lisp"
+    "ystream.lisp"
+    "hax.lisp"
+  ];
+
+  deps = [
+    (depot.nix.buildLisp.bundled "asdf")
+    depot.third_party.lisp.trivial-gray-streams
+    depot.third_party.lisp.babel
+  ];
+}