about summary refs log tree commit diff
path: root/tools/cheddar/default.nix
blob: 8d37694c008d7b913d0ed33e88ec128cbf994f4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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.targets = [
    "about-filter"
  ];
}