From 463c78a509ee94314a419bd0fcec6e946b3eb848 Mon Sep 17 00:00:00 2001 From: William Giokas Date: Tue, 17 Mar 2015 14:30:47 -0700 Subject: vim: Add python3 support to vim_configurable --- pkgs/applications/editors/vim/configurable.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pkgs/applications/editors/vim/configurable.nix') diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix index 94ae1d9c846a..cb2f562d51ce 100644 --- a/pkgs/applications/editors/vim/configurable.nix +++ b/pkgs/applications/editors/vim/configurable.nix @@ -102,6 +102,19 @@ composableDerivation { }; } + // edf { + name = "python3"; + feat = "python3interp"; + enable = { + nativeBuildInputs = [ pkgs.python3 ]; + } // lib.optionalAttrs stdenv.isDarwin { + configureFlags + = [ "--enable-python3interp=yes" + "--with-python3-config-dir=${pkgs.python3}/lib" + "--disable-pythoninterp" ]; + }; + } + // edf { name = "tcl"; enable = { nativeBuildInputs = [tcl]; }; } #Include Tcl interpreter. // edf { name = "ruby"; feat = "rubyinterp"; enable = { nativeBuildInputs = [ruby]; };} #Include Ruby interpreter. // edf { @@ -131,6 +144,7 @@ composableDerivation { cfg = { luaSupport = config.vim.lua or true; pythonSupport = config.vim.python or true; + python3Support = config.vim.python3 or false; rubySupport = config.vim.ruby or true; nlsSupport = config.vim.nls or false; tclSupport = config.vim.tcl or false; -- cgit 1.4.1