diff options
Diffstat (limited to 'pkgs/applications/editors/vim')
-rw-r--r-- | pkgs/applications/editors/vim/configurable.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index 9ffa31f2f2e0..ad04cab62f51 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -5,10 +5,13 @@ args@{ source ? "default", callPackage, fetchurl, stdenv, ncurses, pkgconfig, ge , libX11, libXext, libSM, libXpm, libXt, libXaw, libXau, libXmu , libICE , vimPlugins +, makeWrapper # apple frameworks , CoreServices, CoreData, Cocoa, Foundation, libobjc, cf-private +, wrapPythonDrv ? false + , ... }: with args; @@ -106,6 +109,11 @@ composableDerivation { feat = "python${if python ? isPy3 then "3" else ""}interp"; enable = { buildInputs = [ python ]; + } // lib.optionalAttrs wrapPythonDrv { + nativeBuildInputs = [ makeWrapper ]; + postInstall = '' + wrapProgram "$out/bin/vim" --prefix PATH : "${python}/bin" + ''; } // lib.optionalAttrs stdenv.isDarwin { configureFlags = [ "--enable-python${if python ? isPy3 then "3" else ""}interp=yes" |