chore(nix/renderMarkdown): Move out of //users/tazjin

Change-Id: Ia5e873420b57436abead8e02cef3e5b7149de123
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3731
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-10-16 16:30:41 +02:00 committed by tazjin
parent 7bde7ca995
commit edd8680e87
3 changed files with 3 additions and 3 deletions

View file

@ -6,4 +6,3 @@ with depot.nix.yants;
defun [ path drv ] (file: pkgs.runCommandNoCC "${file}.rendered.html" {} '' defun [ path drv ] (file: pkgs.runCommandNoCC "${file}.rendered.html" {} ''
cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
'') '')

View file

@ -12,7 +12,7 @@
let let
inherit (builtins) filter map hasAttr replaceStrings; inherit (builtins) filter map hasAttr replaceStrings;
inherit (pkgs) runCommandNoCC writeText; inherit (pkgs) runCommandNoCC writeText;
inherit (depot.users.tazjin) renderMarkdown; inherit (depot.nix) renderMarkdown;
# Generate a post list for all listed, non-draft posts. # Generate a post list for all listed, non-draft posts.
isDraft = post: (hasAttr "draft" post) && post.draft; isDraft = post: (hasAttr "draft" post) && post.draft;

View file

@ -7,8 +7,9 @@ let
inherit (builtins) map readFile sort foldl'; inherit (builtins) map readFile sort foldl';
inherit (lib) max singleton; inherit (lib) max singleton;
inherit (pkgs) writeText; inherit (pkgs) writeText;
inherit (depot.nix) renderMarkdown;
inherit (depot.users.tazjin) blog;
inherit (depot.web) atom-feed; inherit (depot.web) atom-feed;
inherit (depot.users.tazjin) blog renderMarkdown;
postToEntry = defun [ blog.post atom-feed.entry ] (post: rec { postToEntry = defun [ blog.post atom-feed.entry ] (post: rec {
id = "https://tazj.in/blog/${post.key}"; id = "https://tazj.in/blog/${post.key}";