anchor.diff:  
     patches = [ ./mime.patch ];
   
  +  preConfigure = ''
  +    # autotools check tries to dlopen libpython as a requirement for the python plugin
  +    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${python}/lib
  +  '';
  +
     postPatch = ''
       substituteInPlace src/procmime.c \
           --subst-var-by MIMEROOTDIR ${shared-mime-info}/share
     '';
   
  -  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
  +  nativeBuildInputs = [ autoreconfHook pkgconfig wrapGAppsHook python.pkgs.wrapPython ];
  +  propagatedBuildInputs = with python.pkgs; [ python ] ++ optionals enablePluginPython [ pygtk pygobject2 ];
   
     buildInputs =
       [ curl dbus dbus-glib gtk2 gnutls gsettings-desktop-schemas hicolor-icon-theme
  -      libetpan perl python glib-networking libSM libytnef
  +      libetpan perl glib-networking libSM libytnef
       ]
       ++ optional enableSpellcheck enchant
       ++ optionals (enablePgp || enablePluginSmime) [ gnupg gpgme ]
  
positive.code: 
    enableParallelBuilding = true;
  
    preFixup = ''
      gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
    '';
  
    postInstall = ''
  
negative.code:     ++ optional (!enablePluginArchive) "--disable-archive-plugin"
      ++ optional (!enablePluginFancy) "--disable-fancy-plugin"
      ++ optional (!enablePluginPdf) "--disable-pdf_viewer-plugin"
      ++ optional (!enablePluginPython) "--disable-python-plugin"
      ++ optional (!enablePluginRavatar) "--disable-libravatar-plugin"
      ++ optional (!enablePluginRssyl) "--disable-rssyl-plugin"
      ++ optional (!enablePluginSmime) "--disable-smime-plugin"
  