Consolidate injected dependencies
Move the three injected dependencies into one.
This commit is contained in:
parent
4e0b18506f
commit
755554176d
1 changed files with 3 additions and 6 deletions
|
@ -6,13 +6,11 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
injectedPosts = nixpkgs.writeText "posts.lisp" ''
|
injections = nixpkgs.writeText "injections.lisp" ''
|
||||||
(in-package #:server)
|
(in-package #:server)
|
||||||
(setq *path-to-posts* "${./posts}")
|
(setq *path-to-posts* "${./posts}")
|
||||||
'';
|
|
||||||
injectedExecutables = nixpkgs.writeText "executables.lisp" ''
|
|
||||||
(in-package #:server)
|
|
||||||
(setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc")
|
(setq *pandoc-bin* "${nixpkgs.pandoc}/bin/pandoc")
|
||||||
|
(setq *html-template* "${./src/index.html}")
|
||||||
'';
|
'';
|
||||||
in depot.nix.buildLisp.program {
|
in depot.nix.buildLisp.program {
|
||||||
name = "server";
|
name = "server";
|
||||||
|
@ -23,7 +21,6 @@ in depot.nix.buildLisp.program {
|
||||||
];
|
];
|
||||||
srcs = [
|
srcs = [
|
||||||
./src/server.lisp
|
./src/server.lisp
|
||||||
injectedPosts
|
injections
|
||||||
injectedExecutables
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue