anchor.diff:    dontWrapGApps = true;
     dontWrapQtApps = true;
   
  -  nativeBuildInputs = [ pkgconfig cmake ninja python3 wrapGAppsHook wrapQtAppsHook ];
  +  nativeBuildInputs = [ pkgconfig cmake ninja python3 wrapGAppsHook wrapQtAppsHook removeReferencesTo ];
   
     buildInputs = [
       qtbase qtimageformats gtk3 libsForQt5.libdbusmenu enchant2 lz4 xxHash
  
positive.code: 
    postFixup = ''
      # Nuke refs to `tg_owt` which is introduced by `__FILE__` in headers.
      sed -E "s|($NIX_STORE/)[a-z0-9]{32}(-${tg_owt.name})|\1eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\2|g" \
        --in-place $out/bin/telegram-desktop
  
      # This is necessary to run Telegram in a pure environment.
      # We also use gappsWrapperArgs from wrapGAppsHook.
  
negative.code: 
  in mkDerivation rec {
    pname = "telegram-desktop";
    version = "2.4.4";
  
    # Telegram-Desktop with submodules
    src = fetchurl {
      url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
      sha256 = "09lhikaybf57rki62miqcaxxrdg1ni2rj9aj4w9mrbzdv849fyc8";
    };
  
    postPatch = ''
  