refactor(nixos-tvix-cache): drop cheddar
markdown2html-converter is actually better at converting markdown to html. Change-Id: Ieec6b4de412c7c466a71c4ea542ef9ca950b5bee
This commit is contained in:
parent
5a7899fa2a
commit
4a34be023a
1 changed files with 3 additions and 4 deletions
|
|
@ -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."/" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue