tvl-depot/users/tazjin/renderMarkdown.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
242 B
Nix
Raw Normal View History

# Render a Markdown file to HTML.
{ depot, pkgs, ... }:
with depot.nix.yants;
defun [ path drv ] (file: pkgs.runCommandNoCC "${file}.rendered.html" {} ''
cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
'')