vimUtils.buildVimPlugin: only add vimCommandCheckHook to

nativeBuildInputs when native compiling
This commit is contained in:
Nick Cao
2022-05-29 23:52:29 +02:00
committed by Matthieu Coudron
parent f2493e87d8
commit e7f619c49b
@@ -27,8 +27,7 @@ rec {
forceShare= [ "man" "info" ];
nativeBuildInputs = attrs.nativeBuildInputs or []
++ [ vimCommandCheckHook ]
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) vimGenDocHook;
++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ vimCommandCheckHook vimGenDocHook ];
inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;
installPhase = ''