git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8125 from KaiSforza/vim-python3

vim_configurable: change python version detection

commit9d30688c40cbe4e74d9bc211c67288d0bef95c19 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateThu 7 Jan 2016, 00:46 (11 years ago) parenta225a65c21707e
1 file changed+4−17
pkgs/applications/editors/vim/configurable.nix+4−17
pkgs/applications/editors/vim/configurable.nix+4−17
@@ -108,26 +108,14 @@ composableDerivation {
108108
109109 // edf {
110110 name = "python";
111− feat = "pythoninterp";
111+ feat = "python${if python ? isPy3 then "3" else ""}interp";
112112 enable = {
113113 nativeBuildInputs = [ python ];
114114 } // lib.optionalAttrs stdenv.isDarwin {
115115 configureFlags
116− = [ "--enable-pythoninterp=yes"
117− "--with-python-config-dir=${python}/lib" ];
118− };
119− }
120−
121− // edf {
122− name = "python3";
123− feat = "python3interp";
124− enable = {
125− nativeBuildInputs = [ pkgs.python3 ];
126− } // lib.optionalAttrs stdenv.isDarwin {
127− configureFlags
128− = [ "--enable-python3interp=yes"
129− "--with-python3-config-dir=${pkgs.python3}/lib"
130− "--disable-pythoninterp" ];
116+ = [ "--enable-python${if python ? isPy3 then "3" else ""}interp=yes"
117+ "--with-python${if python ? isPy3 then "3" else ""}-config-dir=${python}/lib"
118+ "--disable-python${if python ? isPy3 then "" else "3"}interp" ];
131119 };
132120 }
133121
@@ -160,7 +148,6 @@ composableDerivation {
160148 cfg = {
161149 luaSupport = config.vim.lua or true;
162150 pythonSupport = config.vim.python or true;
163− python3Support = config.vim.python3 or false;
164151 rubySupport = config.vim.ruby or true;
165152 nlsSupport = config.vim.nls or false;
166153 tclSupport = config.vim.tcl or false;