diff options
-rw-r--r-- | third_party/default.nix | 1 | ||||
-rw-r--r-- | web/cgit-taz/default.nix | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/third_party/default.nix b/third_party/default.nix index f7bd07031e82..afe05ccb52b5 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -84,6 +84,7 @@ let texlive thttpd tree + writeShellScript writeShellScriptBin writeText writeTextFile diff --git a/web/cgit-taz/default.nix b/web/cgit-taz/default.nix index 314282caa1d5..fbb4cd9bc204 100644 --- a/web/cgit-taz/default.nix +++ b/web/cgit-taz/default.nix @@ -15,13 +15,17 @@ let patches = old.patches ++ [ ./cgit_depot_url.patch ]; }); + cmarkFilter = writeShellScript "pulldown-cmark-filter.sh" '' + exec ${pulldown-cmark}/bin/pulldown-cmark -TFSL + ''; + cgitConfig = writeText "cgitrc" '' # Global configuration virtual-root=/ enable-http-clone=1 readme=:README.md - about-filter=${monocgit}/lib/cgit/filters/about-formatting.sh - source-filter=${monocgit}/lib//cgit/filters/syntax-highlighting.py + about-filter=${cmarkFilter} + source-filter=${monocgit}/lib/cgit/filters/syntax-highlighting.py enable-log-filecount=1 enable-log-linecount=1 enable-follow-links=1 |