so that the hook can be used for lua modules as well. Improves composition.launchpad/nixpkgs/master
parent
9dea98679d
commit
1fa84e3e02
@ -0,0 +1,13 @@ |
||||
{ nixpkgs ? import ../../.. { } }: |
||||
with nixpkgs; |
||||
let |
||||
pyEnv = python3.withPackages(ps: [ ps.GitPython ]); |
||||
in |
||||
mkShell { |
||||
packages = [ |
||||
bash |
||||
pyEnv |
||||
nix-prefetch-scripts |
||||
]; |
||||
} |
||||
|
@ -0,0 +1,31 @@ |
||||
echo "Sourcing vim-gen-doc-hook" |
||||
|
||||
# the doc folder is copied via the copy_directories entry of the rockspec |
||||
# in the folder gitsigns.nvim-scm-1-rocks/gitsigns.nvim/scm-1 |
||||
vimPluginGenTags() { |
||||
echo "Executing vimPluginGenTags" |
||||
|
||||
target="$out/@rtpPath@/$pname" |
||||
mkdir -p $out/@rtpPath@ |
||||
cp -r . $target |
||||
|
||||
# build help tags |
||||
if [ -d "$target/doc" ]; then |
||||
echo "Building help tags" |
||||
if ! @vimBinary@ -N -u NONE -i NONE -n -E -s -V1 -c "helptags $target/doc" +quit!; then |
||||
echo "Failed to build help tags!" |
||||
exit 1 |
||||
fi |
||||
else |
||||
echo "No docs available" |
||||
fi |
||||
|
||||
if [ -n "$addonInfo" ]; then |
||||
echo "$addonInfo" > $target/addon-info.json |
||||
fi |
||||
|
||||
echo "Finished executing vimPluginInstallPhase" |
||||
} |
||||
|
||||
preFixupHooks+=(vimPluginGenTags) |
||||
|
Loading…
Reference in new issue