about summary refs log tree commit diff
path: root/third_party/lisp/sclf/default.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-08-02T13·14+0200
committersterni <sternenseemann@systemli.org>2021-09-01T22·57+0000
commit2e08324484aa4fcb8421900a2528ee751f905249 (patch)
tree464c43227a3744a9aaa0db4da25d17c7b3dfcbb2 /third_party/lisp/sclf/default.nix
parenta5dbd0f5d90f0493c89126fe279400d0e7ad7e5b (diff)
feat(3p/lisp/sclf): build using buildLisp r/2811
Adding the default.nix is quite straightforward, however we have to make
today's SBCL happy: due to package locking it no longer likes sclf using
an sb-impl internal constant for some reason. This is however a good
opportunity to clean up the stat-*-time code: It converted the times in
an implementation specific way even though time.lisp does provide a
generic way to convert between unix and universal time. Note that the
updated ASDF file is untested, but should be a trivial enough change.

Change-Id: If193bf830ac704cc53e0855d8e9fff2b5a5ef291
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3268
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party/lisp/sclf/default.nix')
-rw-r--r--third_party/lisp/sclf/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/lisp/sclf/default.nix b/third_party/lisp/sclf/default.nix
new file mode 100644
index 000000000000..fb07f8f764e5
--- /dev/null
+++ b/third_party/lisp/sclf/default.nix
@@ -0,0 +1,28 @@
+# Copyright (C) 2021 by the TVL Authors
+# SPDX-License-Identifier: LGPL-2.1-or-later
+{ depot, pkgs, ... }:
+
+depot.nix.buildLisp.library {
+  name = "sclf";
+
+  deps = [
+    (depot.nix.buildLisp.bundled "sb-posix")
+  ];
+
+  srcs = [
+    ./package.lisp
+    ./sclf.lisp
+    ./sysproc.lisp
+    ./lazy.lisp
+    ./time.lisp
+    ./directory.lisp
+    ./serial.lisp
+    ./mp/sbcl.lisp
+  ];
+
+  # TODO(sterni): implement OS interaction for ECL and CCL
+  brokenOn = [
+    "ecl"
+    "ccl"
+  ];
+}