anchor.diff:        -e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
     '';
   
  -  meta = with lib; {
  +  meta = {
       description = "Telegram Desktop messaging app";
       license = licenses.gpl3;
       platforms = platforms.linux;
  
positive.code:     "-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
      "-I${minizip}/include/minizip"
      # See Telegram/gyp/qt.gypi
      "-I${qtbase.dev}/mkspecs/linux-g++"
    ] ++ lib.concatMap (x: [
      "-I${qtbase.dev}/include/${x}"
      "-I${qtbase.dev}/include/${x}/${qtbase.version}"
      "-I${qtbase.dev}/include/${x}/${qtbase.version}/${x}"
      "-I${libopus.dev}/include/opus"
      "-I${alsaLib.dev}/include/alsa"
      "-I${libpulseaudio.dev}/include/pulse"
    ]) [ "QtCore" "QtGui" "QtDBus" ];
    CPPFLAGS = NIX_CFLAGS_COMPILE;
  
  
negative.code: , qtbase, qtimageformats, gtk3, libappindicator-gtk3, libnotify
  , dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
  }:
  
  with lib;
  
  mkDerivation rec {
    name = "telegram-desktop-${version}";
  