about summary refs log tree commit diff
path: root/third_party/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-21T04·55+0000
committerVincent Ambo <tazjin@google.com>2019-12-21T04·55+0000
commit81d9b81b064e12d85888d45460cb16ea0765a8e4 (patch)
tree34f51c5c73cf8b80232ee772ced5405c86dca3f3 /third_party/default.nix
parent4681c07bde702f64d630f25ef831267cd9ac09ee (diff)
feat(cheddar): Use syntax highlighting assets from bat r/277
This uses Nix to inject the path to the syntax highlighting assets
that ship with the bat source code into the cheddar build at compile
time, where the Rust compiler then inserts it into the binary via
macros.

bat has a lot of custom syntax highlighting definitions that they
collected from all over the place (including for languages like Nix!)
and this makes them accessible to cheddar.

Also if you're reading this, can you just take a moment to appreciate
how incredible it is that Nix just lets us do something like this?!
Diffstat (limited to 'third_party/default.nix')
-rw-r--r--third_party/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix
index afe05ccb52..aade830746 100644
--- a/third_party/default.nix
+++ b/third_party/default.nix
@@ -22,6 +22,7 @@ let
     # of the repo. They become available under `pkgs.third_party.<name>`
     inherit (nixpkgs)
       bashInteractive
+      bat
       buildGoPackage
       cacert
       cachix