about summary refs log tree commit diff
path: root/universe/blog/default.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-29T14·29+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-29T14·29+0000
commitfb9380ba268b3cd27372acadb87b14cc96163374 (patch)
treef65d7fc8d8726499165a0949af39afd1abc8118c /universe/blog/default.nix
parent15110e6de9f85537c7847267caa35fa068aea001 (diff)
parent8ad51b24dd8719840aac47134835ea25cfe1b0b8 (diff)
Add 'universe/' from commit '8ad51b24dd8719840aac47134835ea25cfe1b0b8'
git-subtree-dir: universe
git-subtree-mainline: 15110e6de9f85537c7847267caa35fa068aea001
git-subtree-split: 8ad51b24dd8719840aac47134835ea25cfe1b0b8
Diffstat (limited to 'universe/blog/default.nix')
-rw-r--r--universe/blog/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/universe/blog/default.nix b/universe/blog/default.nix
new file mode 100644
index 000000000000..5359a0ab6f37
--- /dev/null
+++ b/universe/blog/default.nix
@@ -0,0 +1,28 @@
+{
+  nixpkgs ? import <nixpkgs> {},
+  depot ? import <depot> {},
+  universe ? import <universe> {},
+  ...
+}:
+
+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 universe.third_party.lisp; [
+    hunchentoot
+    cl-arrows
+  ];
+  srcs = [
+    ./src/server.lisp
+    injectedPosts
+    injectedExecutables
+  ];
+}