anchor.diff:        "--with-system-icu"
         #"--enable-rust-simd" # not supported since rustc 1.32.0 -> 1.33.0; TODO: probably OK since 68.0.0
         "--enable-system-ffi"
  -      "--enable-system-hunspell"
         "--enable-system-pixman"
         "--enable-system-sqlite"
         #"--enable-system-cairo"
  
positive.code:       nspr nss libnotify xorg.pixman yasm libGLU_combined
        xorg.libXScrnSaver xorg.xorgproto
        xorg.libXext sqlite unzip
        hunspell libevent libstartup_notification /* cairo */
        icu libpng jemalloc
      ]
      ++ lib.optionals enableGTK3 [ gtk3 gnome3.adwaita-icon-theme ];
  
    # from firefox + m4 + wrapperTool
    nativeBuildInputs = [ m4 autoconf213 which gnused pkgconfig perl python wrapperTool cargo rustc ];
  
    patches = [
      # Remove buildconfig.html to prevent a dependency on clang etc.
      ./no-buildconfig.patch
  
      # Needed on older branches since rustc: 1.32.0 -> 1.33.0
      (fetchurl {
        name = "missing-documentation.patch";
        url = "https://aur.archlinux.org/cgit/aur.git/plain/deny_missing_docs.patch"
            + "?h=firefox-esr&id=03bdd01f9cf";
        sha256 = "1i33n3fgwc8d0v7j4qn7lbdax0an6swar12gay3q2nwrhg3ic4fb";
      })
    ];
  
    configureFlags =
      [ # from firefox, but without sound libraries (alsa, libvpx, pulseaudio)
  
negative.code:       gappsWrapperArgs+=(
          --argv0 "$target"
          --set MOZ_APP_LAUNCHER thunderbird
          # https://github.com/NixOS/nixpkgs/pull/61980
          --set SNAP_NAME "thunderbird"
        )
        ${
          # We wrap manually because wrapGAppsHook does not detect the symlink
  