tvl-depot/tools/cheddar/default.nix
Vincent Ambo 3318982f81 chore: move some meta.targets definitions to meta.ci.targets
Change-Id: Icdec1dec89158fb596c5185ac7105892081947f5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5252
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: tazjin <tazjin@tvl.su>
2022-02-08 12:06:10 +00:00

23 lines
570 B
Nix

{ depot, pkgs, ... }:
depot.third_party.naersk.buildPackage {
src = ./.;
doDoc = false;
override = x: {
# Use our custom bat syntax set, which is everything from upstream,
# 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.ci.targets = [
"about-filter"
];
}