2020-01-22 01:50:05 +01:00
|
|
|
# JSON encoder & decoder
|
2021-04-10 02:13:18 +02:00
|
|
|
{ depot, pkgs, ... }:
|
2020-01-22 01:50:05 +01:00
|
|
|
|
2021-04-10 02:13:18 +02:00
|
|
|
let
|
|
|
|
inherit (depot.nix) buildLisp;
|
|
|
|
|
2022-05-31 16:41:34 +02:00
|
|
|
src = pkgs.srcOnly pkgs.quicklispPackages.cl-json;
|
2020-01-27 00:59:07 +01:00
|
|
|
in
|
|
|
|
buildLisp.library {
|
2020-01-22 01:50:05 +01:00
|
|
|
name = "cl-json";
|
2020-01-27 00:59:07 +01:00
|
|
|
deps = [ (buildLisp.bundled "asdf") ];
|
2020-01-22 01:50:05 +01:00
|
|
|
|
|
|
|
srcs = [ "${src}/cl-json.asd" ] ++
|
|
|
|
(map (f: src + ("/src/" + f)) [
|
|
|
|
"package.lisp"
|
|
|
|
"common.lisp"
|
|
|
|
"objects.lisp"
|
|
|
|
"camel-case.lisp"
|
|
|
|
"decoder.lisp"
|
|
|
|
"encoder.lisp"
|
|
|
|
"utils.lisp"
|
|
|
|
"json-rpc.lisp"
|
|
|
|
]);
|
|
|
|
}
|