anchor.diff:  , pkg-config, cmake, ninja, python3, wrapGAppsHook, wrapQtAppsHook, removeReferencesTo
   , qtbase, qtimageformats, gtk3, libsForQt5, enchant2, lz4, xxHash
   , dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
  -, tl-expected, hunspell, glibmm
  +, tl-expected, hunspell, glibmm, webkitgtk
   # Transitive dependencies:
   , pcre, xorg, util-linux, libselinux, libsepol, epoxy
   , at-spi2-core, libXtst, libthai, libdatrie
  
positive.code: 
  let
    tg_owt = callPackage ./tg_owt.nix {};
    tgcalls-gcc10-fix = fetchpatch { # "Fix build on GCC 10, second attempt."
      url = "https://github.com/TelegramMessenger/tgcalls/commit/eded7cc540123eaf26361958b9a61c65cb2f7cfc.patch";
      sha256 = "19n1hvn44pp01zc90g93vq2bcr2gdnscaj5il9f82klgh4llvjli";
    };
  
  in mkDerivation rec {
    pname = "telegram-desktop";
    version = "2.7.1";
  
    # Telegram-Desktop with submodules
    src = fetchurl {
      url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
      sha256 = "01fxzcfz3xankmdar55ja55pb9hkvlf1plgpgjpsda9xwqgbxgs1";
    };
  
    postPatch = ''
  
negative.code:   buildInputs = [
      qtbase qtimageformats gtk3 libsForQt5.kwayland libsForQt5.libdbusmenu enchant2 lz4 xxHash
      dee ffmpeg openalSoft minizip libopus alsaLib libpulseaudio range-v3
      tl-expected hunspell glibmm webkitgtk
      tg_owt
      # Transitive dependencies:
      pcre xorg.libpthreadstubs xorg.libXdmcp util-linux libselinux libsepol epoxy
  