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


                     
                                                                        

                                                                                
# Render a Markdown file to HTML.
{ depot, pkgs, ... }:

with depot.nix.yants;

defun [ path drv ] (file: pkgs.runCommand "${file}.rendered.html" { } ''
  cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
'')