From e7f619c49b26a25f8c86fd8e6fc7bcfe8eb3ee76 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 2 May 2022 10:30:33 +0800 Subject: [PATCH] vimUtils.buildVimPlugin: only add vimCommandCheckHook to nativeBuildInputs when native compiling --- pkgs/applications/editors/vim/plugins/build-vim-plugin.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix index 4773cfb9e43e..6b4cf674ac5a 100644 --- a/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix +++ b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix @@ -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 = ''