From 2d0d7db7f0846cef9627cc79fa446f23c6ebdf16 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 3 Jan 2023 14:52:00 -0500 Subject: [PATCH] vimPlugins.nvim-treesitter: clean up update script --- .../editors/vim/plugins/nvim-treesitter/generated.nix | 2 +- .../editors/vim/plugins/nvim-treesitter/update.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/nvim-treesitter/generated.nix b/pkgs/applications/editors/vim/plugins/nvim-treesitter/generated.nix index c6c995700075..59b5ac48ce9b 100644 --- a/pkgs/applications/editors/vim/plugins/nvim-treesitter/generated.nix +++ b/pkgs/applications/editors/vim/plugins/nvim-treesitter/generated.nix @@ -1,6 +1,6 @@ # generated by pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py -{ buildGrammar, fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchgit }: +{ buildGrammar, fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchgit, fetchhg, fetchsvn }: { ada = buildGrammar { diff --git a/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py b/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py index 6b297cd59157..6963a82d46b6 100755 --- a/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py +++ b/pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py @@ -60,10 +60,9 @@ def generate_grammar(item): generated_file = """# generated by pkgs/applications/editors/vim/plugins/nvim-treesitter/update.py -{ buildGrammar""" +{ buildGrammar, """ -for fetcher in subprocess.check_output(["nurl", "-L"], text=True).splitlines(): - generated_file += f", {fetcher}" +generated_file += subprocess.check_output(["nurl", "-Ls", ", "], text=True) generated_file += """ }: