refactor(nixos-tvix-cache): drop cheddar

markdown2html-converter is actually better at converting markdown to
html.

Change-Id: Ieec6b4de412c7c466a71c4ea542ef9ca950b5bee
This commit is contained in:
Florian Klink 2025-02-24 17:29:09 +07:00
parent 5a7899fa2a
commit 4a34be023a

View file

@ -1,4 +1,4 @@
{ config, depot, pkgs, ... }:
{ config, pkgs, ... }:
{
imports = [ ./nar-bridge-module.nix ];
@ -11,11 +11,10 @@
tryFiles = "$uri $uri/index.html =404";
root = pkgs.runCommand "index"
{
nativeBuildInputs = [ depot.tools.cheddar ];
nativeBuildInputs = [ pkgs.markdown2html-converter ];
} ''
mkdir -p $out
cheddar README.md < ${./README.md} > $out/index.html
find $out
markdown2html-converter ${./README.md} -o $out/index.html
'';
};
locations."/" = {