From 9663a29afa9ae4ad8a5bd69b8fd307d9c4563180 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Fri, 29 Apr 2022 10:09:40 +0200 Subject: buildVimPlugin: add vimCommandCheckHook Modeled after pythonImportCheckHook, this checks a command can be run once the plugin is installed --- pkgs/applications/editors/vim/plugins/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs/applications/editors/vim/plugins/default.nix') 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; }; -- cgit 1.4.1