anchor.diff:        // edf { name = "xsmp_interact"; } #Disable XSMP interaction
         // edf { name = "mzscheme"; } #Include MzScheme interpreter.
         // edf { name = "perl"; feat = "perlinterp"; enable = { nativeBuildInputs = [perl]; };} #Include Perl interpreter.
  -      // edf { name = "python"; feat = "pythoninterp"; enable = { nativeBuildInputs = [python]; }; } #Include Python interpreter.
  +
  +      // edf {
  +        name = "python";
  +        feat = "pythoninterp";
  +        enable = {
  +          nativeBuildInputs = [ python ];
  +        } // lib.optionalAttrs stdenv.isDarwin {
  +          configureFlags
  +            = [ "--enable-pythoninterp=yes"
  +                "--with-python-config-dir=${python}/lib" ];
  +        };
  +      }
  +
         // edf { name = "tcl"; enable = { nativeBuildInputs = [tcl]; }; } #Include Tcl interpreter.
         // edf { name = "ruby"; feat = "rubyinterp"; enable = { nativeBuildInputs = [ruby]; };} #Include Ruby interpreter.
         // edf { name = "lua" ; feat = "luainterp"; enable = { nativeBuildInputs = [lua]; configureFlags = ["--with-lua-prefix=${args.lua}"];};}
  
positive.code:       }.src;
      };
  
      configureFlags
        = [ "--enable-gui=${args.gui}" "--with-features=${args.features}" ];
  
  
negative.code:       // edf "gtktest" "gtktest" { } #Do not try to compile and run a test GTK program
      */
  
    postInstall = stdenv.lib.optionalString stdenv.isLinux ''
      rpath=`patchelf --print-rpath $out/bin/vim`;
      for i in $nativeBuildInputs; do
        echo adding $i/lib
  