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> {},
|
|
|
|
universe ? import <universe> {},
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2020-01-23 19:25:10 +01:00
|
|
|
let
|
2020-01-23 22:58:31 +01:00
|
|
|
injectedPosts = nixpkgs.writeText "posts.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
|
|
|
injectedExecutables = nixpkgs.writeText "executables.lisp" ''
|
2020-01-23 19:25:10 +01:00
|
|
|
(in-package #:server)
|
2020-01-23 22:58:31 +01:00
|
|
|
(setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc")
|
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-23 22:58:31 +01:00
|
|
|
deps = with depot.third_party.lisp; with universe.third_party.lisp; [
|
2020-01-23 17:34:07 +01:00
|
|
|
hunchentoot
|
2020-01-23 22:58:31 +01:00
|
|
|
cl-arrows
|
2020-01-23 17:34:07 +01:00
|
|
|
];
|
|
|
|
srcs = [
|
|
|
|
./src/server.lisp
|
2020-01-23 19:25:10 +01:00
|
|
|
injectedPosts
|
|
|
|
injectedExecutables
|
2020-01-23 17:34:07 +01:00
|
|
|
];
|
|
|
|
}
|