2020-07-24 19:36:40 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (depot.nix.buildLisp) bundled;
|
2021-12-14 22:32:27 +01:00
|
|
|
src = with pkgs; srcOnly lispPackages.postmodern;
|
2020-07-24 19:36:40 +02:00
|
|
|
|
|
|
|
cl-postgres = depot.nix.buildLisp.library {
|
|
|
|
name = "cl-postgres";
|
2021-04-10 02:13:18 +02:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-07-24 19:36:40 +02:00
|
|
|
md5
|
|
|
|
split-sequence
|
|
|
|
ironclad
|
|
|
|
cl-base64
|
|
|
|
uax-15
|
|
|
|
usocket
|
|
|
|
];
|
|
|
|
|
|
|
|
srcs = map (f: src + ("/cl-postgres/" + f)) [
|
|
|
|
"package.lisp"
|
|
|
|
"features.lisp"
|
2021-12-14 22:32:27 +01:00
|
|
|
"config.lisp"
|
|
|
|
"oid.lisp"
|
2020-07-24 19:36:40 +02:00
|
|
|
"errors.lisp"
|
2021-12-14 22:32:27 +01:00
|
|
|
"data-types.lisp"
|
2020-07-24 19:36:40 +02:00
|
|
|
"sql-string.lisp"
|
|
|
|
"trivial-utf-8.lisp"
|
|
|
|
"strings-utf-8.lisp"
|
|
|
|
"communicate.lisp"
|
|
|
|
"messages.lisp"
|
|
|
|
"ieee-floats.lisp"
|
|
|
|
"interpret.lisp"
|
|
|
|
"saslprep.lisp"
|
|
|
|
"scram.lisp"
|
|
|
|
"protocol.lisp"
|
|
|
|
"public.lisp"
|
|
|
|
"bulk-copy.lisp"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
s-sql = depot.nix.buildLisp.library {
|
|
|
|
name = "s-sql";
|
2021-04-10 02:13:18 +02:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-07-24 19:36:40 +02:00
|
|
|
cl-postgres
|
|
|
|
alexandria
|
|
|
|
];
|
|
|
|
|
|
|
|
srcs = map (f: src + ("/s-sql/" + f)) [
|
|
|
|
"package.lisp"
|
2021-12-14 22:32:27 +01:00
|
|
|
"config.lisp"
|
2020-07-24 19:36:40 +02:00
|
|
|
"s-sql.lisp"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
postmodern = depot.nix.buildLisp.library {
|
|
|
|
name = "postmodern";
|
|
|
|
|
2021-04-10 02:13:18 +02:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-07-24 19:36:40 +02:00
|
|
|
alexandria
|
|
|
|
cl-postgres
|
|
|
|
s-sql
|
|
|
|
global-vars
|
|
|
|
split-sequence
|
|
|
|
cl-unicode
|
|
|
|
closer-mop
|
|
|
|
bordeaux-threads
|
|
|
|
];
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
"${src}/postmodern.asd"
|
|
|
|
] ++ (map (f: src + ("/postmodern/" + f)) [
|
|
|
|
"package.lisp"
|
2021-12-14 22:32:27 +01:00
|
|
|
"config.lisp"
|
2020-07-24 19:36:40 +02:00
|
|
|
"connect.lisp"
|
2021-12-14 22:32:27 +01:00
|
|
|
"json-encoder.lisp"
|
2020-07-24 19:36:40 +02:00
|
|
|
"query.lisp"
|
|
|
|
"prepare.lisp"
|
|
|
|
"roles.lisp"
|
|
|
|
"util.lisp"
|
|
|
|
"transaction.lisp"
|
|
|
|
"namespace.lisp"
|
|
|
|
"execute-file.lisp"
|
|
|
|
"table.lisp"
|
|
|
|
"deftable.lisp"
|
|
|
|
]);
|
2021-08-09 02:47:07 +02:00
|
|
|
|
|
|
|
brokenOn = [
|
|
|
|
"ecl" # TODO(sterni): https://gitlab.com/embeddable-common-lisp/ecl/-/issues/651
|
|
|
|
];
|
2020-07-24 19:36:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in postmodern // {
|
|
|
|
inherit s-sql cl-postgres;
|
|
|
|
}
|