Attempt to inject dependencies into blog/server
- We need the markdown files, to be in the /nix/store and the server needs to be aware of there location. - Since we're dependending on `pandoc`, our server needs to know about it too. For both of these cases -- especially for the latter case -- I imagine there may be a more idiomatic way of doing this.
This commit is contained in:
		
							parent
							
								
									336a1fdf9f
								
							
						
					
					
						commit
						b25d06db7e
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		|  | @ -1,15 +1,27 @@ | |||
| { | ||||
|   pkgs ? import <nixpkgs> {}, | ||||
|   depot ? import <depot> {}, | ||||
|   universe ? import <universe> {}, | ||||
|   ... | ||||
| }: | ||||
| 
 | ||||
| depot.nix.buildLisp.program { | ||||
| 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 | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue