about summary refs log tree commit diff
path: root/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-03-27 00:30:17 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-03-27 01:40:35 +0200
commit83ae03de66e3b69ec9e34effd739d43c7971b496 (patch)
tree92ee488ef3773562501e1667478e848a5e4c3f6c /pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
parent05dbf8731ba4ac7805f7a16ac21cfd5ad1f5355b (diff)
vimPlugins.nvim-treesitter: prefix version with 0.0.0+rev=
This makes diffing two nixos systems less noisy,
as no longer short commits starting with numbers are counted as versions
and with letters as pname.
Diffstat (limited to 'pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py')
-rwxr-xr-xpkgs/applications/editors/vim/plugins/nvim-treesitter/update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py b/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
index 380100978999e..bbacc6959c255 100755
--- a/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
+++ b/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py
@@ -35,7 +35,7 @@ def generate_grammar(item):
 
     generated = f"""  {lang} = buildGrammar {{
     language = "{lang}";
-    version = "{rev[:7]}";
+    version = "0.0.0+rev={rev[:7]}";
     src = """
 
     generated += subprocess.check_output(["nurl", url, rev, "--indent=4"], text=True)