From 57131f173e4aeeb074715d64a34ced5eabcdc033 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 16 Sep 2021 18:45:32 +0200 Subject: [PATCH] vimUtils.vimGenDocHook: fix tag generation --- pkgs/misc/vim-plugins/build-vim-plugin.nix | 3 +++ pkgs/misc/vim-plugins/vim-gen-doc-hook.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/vim-plugins/build-vim-plugin.nix b/pkgs/misc/vim-plugins/build-vim-plugin.nix index 90960da7844a..5b235188c06a 100644 --- a/pkgs/misc/vim-plugins/build-vim-plugin.nix +++ b/pkgs/misc/vim-plugins/build-vim-plugin.nix @@ -26,6 +26,9 @@ rec { addRtp "${rtpPath}/${path}" attrs (stdenv.mkDerivation (attrs // { name = namePrefix + name; + # dont move the doc folder since vim expects it + forceShare= [ "man" "info" ]; + nativeBuildInputs = attrs.nativeBuildInputs or [] ++ [ vimGenDocHook ]; inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall; diff --git a/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh b/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh index cbf666f8b74d..d5f0a00ebcc2 100644 --- a/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh +++ b/pkgs/misc/vim-plugins/vim-gen-doc-hook.sh @@ -5,7 +5,7 @@ echo "Sourcing vim-gen-doc-hook" vimPluginGenTags() { echo "Executing vimPluginGenTags" - target="$out/@rtpPath@/$pname" + target="$out/@rtpPath@" mkdir -p $out/@rtpPath@ # build help tags @@ -16,7 +16,7 @@ vimPluginGenTags() { exit 1 fi else - echo "No docs available" + echo "No docs available for $target" fi if [ -n "$addonInfo" ]; then