about summary refs log tree commit diff
path: root/tools/cheddar/default.nix
blob: ed4814be0a78e19f46315a24726dc933e072bb5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, ... }:

with pkgs.third_party;

naersk.buildPackage {
  src = ./.;
  doDoc = false;
  doCheck = false;

  override = x: {
    # bat contains syntax highlighting packages for a lot more
    # languages than what ships with syntect, and we can make use of
    # them!
    BAT_SYNTAXES = "${bat.src}/assets/syntaxes.bin";

    # LLVM packages (why are they even required?) are not found
    # automatically if added to buildInputs, hence this ...
    LIBCLANG_PATH = "${llvmPackages.libclang}/lib/libclang.so.7";
  };
}