vimUtils.buildVimPlugin: fix cross compiles

generating docs requires executing the vim binary
This commit is contained in:
arcnmx 2021-09-17 22:49:07 -07:00
parent e13d27929c
commit b95e501450

View File

@ -29,7 +29,8 @@ rec {
# dont move the doc folder since vim expects it
forceShare= [ "man" "info" ];
nativeBuildInputs = attrs.nativeBuildInputs or [] ++ [ vimGenDocHook ];
nativeBuildInputs = attrs.nativeBuildInputs or []
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) vimGenDocHook;
inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;
installPhase = ''