From 32da9861d5e8d8c3a51e3a102f08f15072ab8eea Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 3 Feb 2022 19:39:18 +0100 Subject: refactor: expose cheddar-about script from cheddar 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 Autosubmit: sterni --- tools/cheddar/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools') diff --git a/tools/cheddar/default.nix b/tools/cheddar/default.nix index c8d7ba5ffe..8d37694c00 100644 --- a/tools/cheddar/default.nix +++ b/tools/cheddar/default.nix @@ -9,4 +9,15 @@ depot.third_party.naersk.buildPackage { # plus additional languages we care about. BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}"; }; + + passthru = { + # Wrapper for cgit which can't be told to pass arguments to a filter + about-filter = pkgs.writeShellScriptBin "cheddar-about" '' + exec ${depot.tools.cheddar}/bin/cheddar --about-filter $@ + ''; + }; + + meta.targets = [ + "about-filter" + ]; } -- cgit 1.4.1