aa122cbae7
This CL can be used to compare the style of nixpkgs-fmt against other formatters (nixpkgs, alejandra). Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: cynthia <cynthia@tvl.fyi> Reviewed-by: edef <edef@edef.eu> Reviewed-by: eta <tvl@eta.st> Reviewed-by: grfn <grfn@gws.fyi>
18 lines
576 B
Nix
18 lines
576 B
Nix
# 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
|
|
''
|