diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-23T21·58+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-23T22·01+0000 |
commit | 6108f8df0140e2f71c9f9b50d530d16400d9cdcb (patch) | |
tree | 8d1fcc3c535cf9e449ec1d114d407391b3ee1de8 /blog/default.nix | |
parent | 2e3bb0435f2849e2a5d4da0ed8408c2993ca9052 (diff) |
Support proof-of-concept blog
After some toil, I have a working proof-of-concept blog. The idea is simple: write blog posts in markdown and store the posts in the `./posts` directory. Then use the server and `pandoc` to convert these markdown files into HTML at request time. I'm using nix to package everything together. It's far from perfect, but it works at the moment, which is encouraging.
Diffstat (limited to 'blog/default.nix')
-rw-r--r-- | blog/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/blog/default.nix b/blog/default.nix index ed1e405ddca4..5359a0ab6f37 100644 --- a/blog/default.nix +++ b/blog/default.nix @@ -1,23 +1,24 @@ { - pkgs ? import <nixpkgs> {}, + nixpkgs ? import <nixpkgs> {}, depot ? import <depot> {}, universe ? import <universe> {}, ... }: let - injectedPosts = pkgs.writeText "posts.lisp" '' + injectedPosts = nixpkgs.writeText "posts.lisp" '' (in-package #:server) (setq *path-to-posts* "${./posts}") ''; - injectedExecutables = pkgs.writeText "executables.lisp" '' + injectedExecutables = nixpkgs.writeText "executables.lisp" '' (in-package #:server) - (setq *pandoc-bin* "${pkgs.pandoc}/bin/pandoc") + (setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc") ''; in depot.nix.buildLisp.program { name = "server"; - deps = with depot.third_party.lisp; [ + deps = with depot.third_party.lisp; with universe.third_party.lisp; [ hunchentoot + cl-arrows ]; srcs = [ ./src/server.lisp |