about summary refs log tree commit diff
path: root/web/cgit-taz
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-02-03T18·39+0100
committersterni <sternenseemann@systemli.org>2022-02-03T23·41+0000
commit32da9861d5e8d8c3a51e3a102f08f15072ab8eea (patch)
tree44a539f553da2b670be8567c3c316ceb2a1a96ef /web/cgit-taz
parente2238d63156d4f914d62dde7c2a9319fe534d039 (diff)
refactor: expose cheddar-about script from cheddar r/3760
Any other cgit configuration in depot would need this script wrapper as
well.

Change-Id: Ifa04e1c9de9c925eb3f60c5d3854221ae02ef06c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5206
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'web/cgit-taz')
-rw-r--r--web/cgit-taz/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/cgit-taz/default.nix b/web/cgit-taz/default.nix
index 83ec822e5d6b..d20bbbe3135b 100644
--- a/web/cgit-taz/default.nix
+++ b/web/cgit-taz/default.nix
@@ -10,15 +10,12 @@ let
     writeText
     ;
 
-  sourceFilter = writeShellScriptBin "cheddar-about" ''
-    exec ${depot.tools.cheddar}/bin/cheddar --about-filter $@
-  '';
   cgitConfig = writeText "cgitrc" ''
     # Global configuration
     virtual-root=/
     enable-http-clone=0
     readme=:README.md
-    about-filter=${sourceFilter}/bin/cheddar-about
+    about-filter=${depot.tools.cheddar.about-filter}/bin/cheddar-about
     source-filter=${depot.tools.cheddar}/bin/cheddar
     enable-log-filecount=1
     enable-log-linecount=1