2021-07-27 22:09:21 +02:00
|
|
|
{ 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";
|
|
|
|
|
2021-09-02 01:17:50 +02:00
|
|
|
# closure-common.asd surpresses some warnings otherwise breaking
|
|
|
|
# compilation. Feature macros across implementations:
|
|
|
|
#
|
|
|
|
# ECL #+rune-is-character #-rune-is-integer #-x&y-streams-are-stream
|
|
|
|
# CCL #+rune-is-character #-rune-is-integer #-x&y-streams-are-stream
|
|
|
|
# SBCL #+rune-is-character #-rune-is-integer #-x&y-streams-are-stream
|
|
|
|
#
|
|
|
|
# Since all implementations agree, the alternative files aren't encoded here.
|
2021-07-27 22:09:21 +02:00
|
|
|
srcs = getSrcs [
|
|
|
|
"closure-common.asd"
|
|
|
|
"package.lisp"
|
|
|
|
"definline.lisp"
|
2021-09-02 01:17:50 +02:00
|
|
|
"characters.lisp" #+rune-is-character
|
2021-07-27 22:09:21 +02:00
|
|
|
"syntax.lisp"
|
2021-09-02 01:17:50 +02:00
|
|
|
"encodings.lisp" #-x&y-streams-are-stream
|
|
|
|
"encodings-data.lisp" #-x&y-streams-are-stream
|
|
|
|
"xstream.lisp" #-x&y-streams-are-stream
|
|
|
|
"ystream.lisp" #-x&y-streams-are-stream
|
2021-07-27 22:09:21 +02:00
|
|
|
"hax.lisp"
|
|
|
|
];
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
(depot.nix.buildLisp.bundled "asdf")
|
|
|
|
depot.third_party.lisp.trivial-gray-streams
|
2021-09-02 01:17:50 +02:00
|
|
|
depot.third_party.lisp.babel #+rune-is-character
|
2021-07-27 22:09:21 +02:00
|
|
|
];
|
|
|
|
}
|