anchor.diff:      ++ lib.optionals enableGTK3 [ gtk3 gnome3.defaultIconTheme ];
   
     # from firefox + m4 + wrapperTool
  -  nativeBuildInputs = [ m4 autoconf213 which gnused pkgconfig perl python wrapperTool ];
  +  nativeBuildInputs = [ m4 autoconf213 which gnused pkgconfig perl python wrapperTool cargo rustc ];
   
     configureFlags =
       [ # from firefox, but without sound libraries (alsa, libvpx, pulseaudio)
  -      "--enable-application=mail"
  +      "--enable-application=comm/mail"
         "--disable-alsa"
         "--disable-pulseaudio"
   
  
positive.code:     # Fix notifications. LibXUL uses dlopen for this, unfortunately; see #18712.
      ''
        patchelf --set-rpath "${lib.getLib libnotify
          }/lib:$(patchelf --print-rpath "$out"/lib/thunderbird-*/libxul.so)" \
            "$out"/lib/thunderbird-*/libxul.so
      '';
  
    doInstallCheck = true;
  
negative.code: , icu, libpng, jemalloc
  , autoconf213, which, m4
  , writeScript, xidel, common-updater-scripts, coreutils, gnused, gnugrep, curl
  , cargo, rustc, llvmPackages
  , enableGTK3 ? false, gtk3, gnome3, wrapGAppsHook, makeWrapper
  , enableCalendar ? true
  , debugBuild ? false
  