blob: a48962dd364d636664ab36afcbaad9c2d57e5f25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# For depot projects that make use of syntect (primarily
# //tools/cheddar) the included syntax set is taken from bat.
#
# However, bat lacks some of the syntaxes we are interested in. This
# package creates a new binary syntax set which bundles our additional
# syntaxes on top of bat's existing ones.
{ pkgs, ... }:
let
inherit (pkgs) bat runCommandNoCC;
in
runCommandNoCC "bat-syntaxes.bin" { } ''
export HOME=$PWD
mkdir -p .config/bat/syntaxes
cp ${./Prolog.sublime-syntax} .config/bat/syntaxes
${bat}/bin/bat cache --build
mv .cache/bat/syntaxes.bin $out
''
|