diff options
author | Matthieu Coudron <mcoudron@hotmail.com> | 2022-04-29 10:09:40 +0200 |
---|---|---|
committer | Matthieu Coudron <teto@users.noreply.github.com> | 2022-04-30 23:54:25 +0200 |
commit | 9663a29afa9ae4ad8a5bd69b8fd307d9c4563180 (patch) | |
tree | b54bb9bde38fda811858a143a7a6aa879f501b7c /pkgs/applications/editors/vim/plugins/default.nix | |
parent | 2415f1e0a5ec933ca8bf5ff6b91a36cf79ddaf2b (diff) |
buildVimPlugin: add vimCommandCheckHook
Modeled after pythonImportCheckHook, this checks a command can be run once the plugin is installed
Diffstat (limited to 'pkgs/applications/editors/vim/plugins/default.nix')
-rw-r--r-- | pkgs/applications/editors/vim/plugins/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/editors/vim/plugins/default.nix b/pkgs/applications/editors/vim/plugins/default.nix index 1e847e695403f..cd5a1f9d6e509 100644 --- a/pkgs/applications/editors/vim/plugins/default.nix +++ b/pkgs/applications/editors/vim/plugins/default.nix @@ -3,7 +3,7 @@ let - inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix vimGenDocHook; + inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix vimGenDocHook vimCommandCheckHook; inherit (lib) extends; @@ -12,7 +12,10 @@ let toVimPlugin = drv: drv.overrideAttrs(oldAttrs: { - nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ vimGenDocHook ]; + nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ + vimGenDocHook + vimCommandCheckHook + ]; passthru = (oldAttrs.passthru or {}) // { vimPlugin = true; }; |