feat(gerrit): Syntax highlight .nix files.
highlight.js supports syntax highlighting .nix files, but the Gerrit diff components doesn't map the .nix mimetype onto the nix language. .nix appears to already be taken by another mimetype that isn't Nix-related, but we just map that onto nix anyway. https://usercontent.irccloud-cdn.com/file/AVhoPvrb/highlighted.png Change-Id: I842b29c78355e5bec580e711e25d693284ab6f59 Reviewed-on: https://cl.tvl.fyi/c/depot/+/253 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: q3k <q3k@q3k.org>
This commit is contained in:
parent
c05803ff14
commit
5ae0e44d1b
2 changed files with 16 additions and 1 deletions
5
third_party/gerrit/default.nix
vendored
5
third_party/gerrit/default.nix
vendored
|
|
@ -39,7 +39,10 @@ pkgs.buildBazelPackage {
|
|||
sha256 = "1xrckiqc2l07dib22rn6iicgvph8iyxjrzr15bs5x6jdg9cic1s8";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
patches = [ ./use_detzip.patch ];
|
||||
patches = [
|
||||
./use_detzip.patch
|
||||
./syntax_highlight_nix.patch
|
||||
];
|
||||
|
||||
bazelTarget = "release";
|
||||
inherit bazel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue