1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 = ''