tvl-depot/tools/cheddar/default.nix
Vincent Ambo 9885b70b7a feat(cheddar): Override syntax highlighting for 'rules.pl' to Prolog
Adds a mechanism for per-filename overrides of the chosen language
syntax and configures it for Gerrit's submit rule file.

This also switches the syntax set used to the one from
//third_party/bat_syntaxes, which contains custom additions such as
Prolog support.

Change-Id: I2023dbad5b326305ef2ef0ecf34ef66a3f7575ab
Reviewed-on: https://cl.tvl.fyi/c/depot/+/349
Reviewed-by: riking <rikingcoding@gmail.com>
Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-15 16:52:27 +00:00

17 lines
477 B
Nix

{ pkgs, ... }:
pkgs.naersk.buildPackage {
src = ./.;
doDoc = false;
doCheck = false;
override = x: {
# Use our custom bat syntax set, which is everything from upstream,
# plus additional languages we care about.
BAT_SYNTAXES = "${pkgs.bat_syntaxes}";
# LLVM packages (why are they even required?) are not found
# automatically if added to buildInputs, hence this ...
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib/libclang.so.10";
};
}