about summary refs log tree commit diff
path: root/pkgs/applications/editors/vim/plugins/default.nix
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2022-05-02 00:58:41 +0200
committerMatthieu Coudron <mcoudron@hotmail.com>2022-05-03 00:22:03 +0200
commitd4894355c114e6950d7cb844c0220c91098cf479 (patch)
tree104f4d7559c6b97110bf10d4e18f51ba79eb712d /pkgs/applications/editors/vim/plugins/default.nix
parentb9e29b16bae4a8bf92e993d18caa1f33be634961 (diff)
vim/update.py: distinguish between vim/neovim plugins
I've been working for a long time towards automatic nix dependencies for
neovim plugins (using luarocks rockspecs to discover the said
dependencies).
This is an initial commit to help me complete the missing bits.
buildNeovimPluginFrom2Nix is right now a placeholder which helps me test
in my fork a version that does a flat install of luarocks.

the vim updater will now check for attributes with the same name in the lua package set,
if that's the case the script will generate buildNeovimPluginFrom2Nix.
Diffstat (limited to 'pkgs/applications/editors/vim/plugins/default.nix')
-rw-r--r--pkgs/applications/editors/vim/plugins/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vim/plugins/default.nix b/pkgs/applications/editors/vim/plugins/default.nix
index cd5a1f9d6e509..c6ef409d637b8 100644
--- a/pkgs/applications/editors/vim/plugins/default.nix
+++ b/pkgs/applications/editors/vim/plugins/default.nix
@@ -3,7 +3,8 @@
 
 let
 
-  inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix vimGenDocHook vimCommandCheckHook;
+  inherit (vimUtils.override {inherit vim;})
+    buildVimPluginFrom2Nix vimGenDocHook vimCommandCheckHook;
 
   inherit (lib) extends;
 
@@ -24,6 +25,7 @@ let
 
   plugins = callPackage ./generated.nix {
     inherit buildVimPluginFrom2Nix;
+    inherit (vimUtils) buildNeovimPluginFrom2Nix;
   };
 
   # TL;DR