about summary refs log blame commit diff
path: root/blog/default.nix
blob: ed1e405ddca4141fdd7f60d099025248ec81bc76 (plain) (tree)
1
2
3
4
5
6
7
 
                             




                                  









                                                            





                                       

                       

    
{
  pkgs ? import <nixpkgs> {},
  depot ? import <depot> {},
  universe ? import <universe> {},
  ...
}:

let
  injectedPosts = pkgs.writeText "posts.lisp" ''
    (in-package #:server)
    (setq *path-to-posts* "${./posts}")
  '';
  injectedExecutables = pkgs.writeText "executables.lisp" ''
    (in-package #:server)
    (setq *pandoc-bin* "${pkgs.pandoc}/bin/pandoc")
  '';
in depot.nix.buildLisp.program {
  name = "server";
  deps = with depot.third_party.lisp; [
    hunchentoot
  ];
  srcs = [
    ./src/server.lisp
    injectedPosts
    injectedExecutables
  ];
}