summaryrefslogtreecommitdiff
path: root/dged.nix
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-02-01 00:08:06 +0100
committerAlbert Cervin <albert@acervin.com>2024-02-01 00:09:06 +0100
commit1653dfaef03d48a8a3aacfdea33ec6d82cab2a06 (patch)
treea122314f47da3c3904b506f830932e576b45092d /dged.nix
parent0e40d7a21bc0b139086e61e52bac6dc1115703bc (diff)
downloaddged-1653dfaef03d48a8a3aacfdea33ec6d82cab2a06.tar.gz
dged-1653dfaef03d48a8a3aacfdea33ec6d82cab2a06.tar.xz
dged-1653dfaef03d48a8a3aacfdea33ec6d82cab2a06.zip
Add git commit syntax
Diffstat (limited to 'dged.nix')
-rw-r--r--dged.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/dged.nix b/dged.nix
index 84eb6ae..87a0a00 100644
--- a/dged.nix
+++ b/dged.nix
@@ -9,6 +9,7 @@
, doxygen
, valgrind
, linkFarm
+, fetchFromGitHub
}:
stdenv.mkDerivation {
name = "dged";
@@ -38,6 +39,16 @@ stdenv.mkDerivation {
"nix" = tree-sitter-nix;
"python" = tree-sitter-python;
"make" = tree-sitter-make;
+ "gitcommit" = tree-sitter.buildGrammar {
+ language = "gitcommit";
+ version = "0.3.3";
+ src = fetchFromGitHub {
+ owner = "gbprod";
+ repo = "tree-sitter-gitcommit";
+ rev = "v0.3.3";
+ hash = "sha256-L3v+dQZhwC+kBOHf3YVbZjuCU+idbUDByEdUBmeGAlo=";
+ };
+ };
};
installPhase = ''