Skip to content

Commit

Permalink
Merge pull request #134050 from figsoda/fix-vim-update
Browse files Browse the repository at this point in the history
vimPlugins: fix update script indentation
  • Loading branch information
lovesegfault authored Aug 14, 2021
2 parents 7459332 + a298858 commit 66c4266
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pkgs/misc/vim-plugins/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ def generate_nix(self, plugins: List[Tuple[str, str, pluginupdate.Plugin]], outf

f.write(textwrap.indent(textwrap.dedent(
f"""
{plugin.normalized_name} = buildVimPluginFrom2Nix {{
pname = "{plugin.normalized_name}";
version = "{plugin.version}";
src = fetchFromGitHub {{
owner = "{owner}";
repo = "{repo}";
rev = "{plugin.commit}";
sha256 = "{plugin.sha256}";{submodule_attr}
}};
meta.homepage = "https://github.com/{owner}/{repo}/";
}};
"""
{plugin.normalized_name} = buildVimPluginFrom2Nix {{
pname = "{plugin.normalized_name}";
version = "{plugin.version}";
src = fetchFromGitHub {{
owner = "{owner}";
repo = "{repo}";
rev = "{plugin.commit}";
sha256 = "{plugin.sha256}";{submodule_attr}
}};
meta.homepage = "https://github.com/{owner}/{repo}/";
}};
"""
), ' '))
f.write("\n}")
f.write("\n}\n")
print(f"updated {outfile}")


Expand Down

0 comments on commit 66c4266

Please sign in to comment.