2020-01-23 17:34:07 +01:00
|
|
|
{
|
2020-01-23 22:58:31 +01:00
|
|
|
nixpkgs ? import <nixpkgs> {},
|
2020-01-23 17:34:07 +01:00
|
|
|
depot ? import <depot> {},
|
2020-01-31 16:27:48 +01:00
|
|
|
briefcase ? import <briefcase> {},
|
2020-01-23 17:34:07 +01:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2020-01-23 19:25:10 +01:00
|
|
|
let
|
2020-01-31 17:30:25 +01:00
|
|
|
injections = nixpkgs.writeText "injections.lisp" ''
|
2020-01-23 19:25:10 +01:00
|
|
|
(in-package #:server)
|
|
|
|
(setq *path-to-posts* "${./posts}")
|
2020-01-23 22:58:31 +01:00
|
|
|
(setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc")
|
2020-01-31 17:30:25 +01:00
|
|
|
(setq *html-template* "${./src/index.html}")
|
2020-01-23 19:25:10 +01:00
|
|
|
'';
|
|
|
|
in depot.nix.buildLisp.program {
|
2020-01-23 17:34:07 +01:00
|
|
|
name = "server";
|
2020-01-31 16:27:48 +01:00
|
|
|
deps = with depot.third_party.lisp; with briefcase.third_party.lisp; [
|
2020-01-23 17:34:07 +01:00
|
|
|
hunchentoot
|
2020-01-23 22:58:31 +01:00
|
|
|
cl-arrows
|
2020-01-31 17:13:22 +01:00
|
|
|
cl-ppcre
|
2020-01-23 17:34:07 +01:00
|
|
|
];
|
|
|
|
srcs = [
|
|
|
|
./src/server.lisp
|
2020-01-31 17:30:25 +01:00
|
|
|
injections
|
2020-01-23 17:34:07 +01:00
|
|
|
];
|
|
|
|
}
|