9885b70b7a
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>
17 lines
477 B
Nix
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";
|
|
};
|
|
}
|