tvl-depot/blog/default.nix
William Carroll 265d202908 Render pandoc output to index.html
Using index.html allows us to use the Google AdSense script and extend the
styling by adding a CSS stylesheet.
2020-01-31 16:13:22 +00:00

29 lines
645 B
Nix

{
nixpkgs ? import <nixpkgs> {},
depot ? import <depot> {},
briefcase ? import <briefcase> {},
...
}:
let
injectedPosts = nixpkgs.writeText "posts.lisp" ''
(in-package #:server)
(setq *path-to-posts* "${./posts}")
'';
injectedExecutables = nixpkgs.writeText "executables.lisp" ''
(in-package #:server)
(setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc")
'';
in depot.nix.buildLisp.program {
name = "server";
deps = with depot.third_party.lisp; with briefcase.third_party.lisp; [
hunchentoot
cl-arrows
cl-ppcre
];
srcs = [
./src/server.lisp
injectedPosts
injectedExecutables
];
}