feat(tools/cheddar): drop

We don't use this anymore.

Change-Id: Ief97047b28659a8f312217511c240d9d6b8744de
This commit is contained in:
Florian Klink 2025-02-24 17:35:22 +07:00
parent 4a34be023a
commit 001556aa30
14 changed files with 7 additions and 3745 deletions

View file

@ -1,21 +0,0 @@
# Render a Markdown file to HTML.
{ depot, pkgs, ... }:
with depot.nix.yants;
let
args = struct "args" {
path = path;
tagfilter = option bool;
};
in
defun [ (either path args) drv ]
(arg: pkgs.runCommand "${arg.path or arg}.rendered.html" { }
(
let
tagfilter = if (arg.tagfilter or true) then "" else "--no-tagfilter";
in
''
cat ${arg.path or arg} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${tagfilter} ${arg.path or arg} > $out
''
))

View file

@ -13,7 +13,6 @@ let
isDirectory
isRegularFile
isSymlink
pathType
storePathName
;
@ -71,20 +70,20 @@ let
(isSymlink ./does-not-exist))
]);
cheddarStorePath =
builtins.unsafeDiscardStringContext depot.tools.cheddar.outPath;
magratheaStorePath =
builtins.unsafeDiscardStringContext depot.tools.magrathea.outPath;
cleanedSource = lib.cleanSource ./.;
storePathNameTests = it "correctly gets the basename of a store path" [
(assertEq "base name of a derivation"
(storePathName depot.tools.cheddar)
depot.tools.cheddar.name)
(storePathName depot.tools.magrathea)
depot.tools.magrathea.name)
(assertEq "base name of a store path string"
(storePathName cheddarStorePath)
depot.tools.cheddar.name)
(storePathName magratheaStorePath)
depot.tools.magrathea.name)
(assertEq "base name of a path within a store path"
(storePathName "${cheddarStorePath}/bin/cheddar") "cheddar")
(storePathName "${magratheaStorePath}/bin/mg") "mg")
(assertEq "base name of a path"
(storePathName ../default.nix) "default.nix")
(assertEq "base name of a cleanSourced path"