summary refs log tree commit diff
path: root/pkgs/applications/editors/vim/configurable.nix
diff options
context:
space:
mode:
authorWilliam Giokas <willgio@amazon.com>2015-03-17 14:30:47 -0700
committerWilliam Giokas <willgio@amazon.com>2015-03-17 14:30:47 -0700
commit463c78a509ee94314a419bd0fcec6e946b3eb848 (patch)
tree6aa104c517068fd94eed29ebe23cc64e772fb4b3 /pkgs/applications/editors/vim/configurable.nix
parent6a230188c65b8b7b0a3bb3303e027a862d93a161 (diff)
downloadnixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar.gz
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar.bz2
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar.lz
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar.xz
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.tar.zst
nixlib-463c78a509ee94314a419bd0fcec6e946b3eb848.zip
vim: Add python3 support to vim_configurable
Diffstat (limited to 'pkgs/applications/editors/vim/configurable.nix')
-rw-r--r--pkgs/applications/editors/vim/configurable.nix14
1 files changed, 14 insertions, 0 deletions
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;