summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/editors/vim/configurable.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/applications/editors/vim/configurable.nix b/pkgs/applications/editors/vim/configurable.nix
index da15081173da..7a700e0956b8 100644
--- a/pkgs/applications/editors/vim/configurable.nix
+++ b/pkgs/applications/editors/vim/configurable.nix
@@ -112,12 +112,9 @@ in stdenv.mkDerivation rec {
     "--enable-luainterp"
   ]
   ++ stdenv.lib.optionals pythonSupport [
-    "--enable-python${if isPython3 then "3" else ""}"
-  ]
-  ++ stdenv.lib.optionals (pythonSupport && stdenv.isDarwin) [  # Why only for Darwin?
-    "--enable-python${if isPython3 then "3" else ""}interp=yes" # Duplicate?
+    "--enable-python${if isPython3 then "3" else ""}interp=yes"
     "--with-python${if isPython3 then "3" else ""}-config-dir=${python}/lib"
-    "--disable-python${if isPython3 then "" else "3"}interp"
+    "--disable-python${if (!isPython3) then "3" else ""}interp"
   ]
   ++ stdenv.lib.optional nlsSupport          "--enable-nls"
   ++ stdenv.lib.optional perlSupport         "--enable-perlinterp"