about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-10-16T14·30+0200
committertazjin <mail@tazj.in>2021-10-19T11·47+0000
commitedd8680e8773e4568d3d645c53932cf75ebf09fa (patch)
tree2dc65e920ca528c3691ee959656ee847a10512fe /users
parent7bde7ca9958866015e812478170dfbc770eb30e0 (diff)
chore(nix/renderMarkdown): Move out of //users/tazjin r/2975
Change-Id: Ia5e873420b57436abead8e02cef3e5b7149de123
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3731
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/blog/fragments.nix2
-rw-r--r--users/tazjin/homepage/feed.nix3
-rw-r--r--users/tazjin/renderMarkdown.nix9
3 files changed, 3 insertions, 11 deletions
diff --git a/users/tazjin/blog/fragments.nix b/users/tazjin/blog/fragments.nix
index 47d4dd252199..eb46a09fd044 100644
--- a/users/tazjin/blog/fragments.nix
+++ b/users/tazjin/blog/fragments.nix
@@ -12,7 +12,7 @@
 let
   inherit (builtins) filter map hasAttr replaceStrings;
   inherit (pkgs) runCommandNoCC writeText;
-  inherit (depot.users.tazjin) renderMarkdown;
+  inherit (depot.nix) renderMarkdown;
 
   # Generate a post list for all listed, non-draft posts.
   isDraft = post: (hasAttr "draft" post) && post.draft;
diff --git a/users/tazjin/homepage/feed.nix b/users/tazjin/homepage/feed.nix
index bd5b3c25f4be..985108ebe091 100644
--- a/users/tazjin/homepage/feed.nix
+++ b/users/tazjin/homepage/feed.nix
@@ -7,8 +7,9 @@ let
   inherit (builtins) map readFile sort foldl';
   inherit (lib) max singleton;
   inherit (pkgs) writeText;
+  inherit (depot.nix) renderMarkdown;
+  inherit (depot.users.tazjin) blog;
   inherit (depot.web) atom-feed;
-  inherit (depot.users.tazjin) blog renderMarkdown;
 
   postToEntry = defun [ blog.post atom-feed.entry ] (post: rec {
     id = "https://tazj.in/blog/${post.key}";
diff --git a/users/tazjin/renderMarkdown.nix b/users/tazjin/renderMarkdown.nix
deleted file mode 100644
index 0994661cbb9c..000000000000
--- a/users/tazjin/renderMarkdown.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-# 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
-'')
-