1{
2 lib,
3 buildBatExtrasPkg,
4 shfmt,
5 clang-tools,
6 prettier,
7 rustfmt,
8
9 withShFmt ? true,
10 withPrettier ? true,
11 withClangTools ? true,
12 withRustFmt ? true,
13}:
14buildBatExtrasPkg {
15 name = "prettybat";
16 dependencies =
17 lib.optional withShFmt shfmt
18 ++ lib.optional withPrettier prettier
19 ++ lib.optional withClangTools clang-tools
20 ++ lib.optional withRustFmt rustfmt;
21 meta.description = "Pretty-print source code and highlight it with bat";
22}