anchor.diff:      "-I${libopus.dev}/include/opus"
       "-I${alsaLib.dev}/include/alsa"
       "-I${libpulseaudio.dev}/include/pulse"
  -  ]) [ "QtCore" "QtGui" ];
  +  ]) [ "QtCore" "QtGui" "QtDBus" ];
     CPPFLAGS = NIX_CFLAGS_COMPILE;
   
     preConfigure = ''
  
positive.code: { mkDerivation, lib, fetchgit, pkgconfig, gyp, cmake
  , qtbase, qtimageformats
  , gtk3, libappindicator-gtk3, dee
  , ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio
  , gcc
  }:
  
  mkDerivation rec {
    name = "telegram-desktop-${version}";
    version = "1.1.23";
  
    # Submodules
    src = fetchgit {
      url = "git://github.com/telegramdesktop/tdesktop";
      rev = "v${version}";
      sha256 = "0pdjrypjg015zvg8iydrja8kzvq0jsi1wz77r2cxvyyb4rkgyv7x";
      fetchSubmodules = true;
    };
  
    tgaur = fetchgit {
      url = "https://aur.archlinux.org/telegram-desktop-systemqt.git";
      rev = "885d0594d8dfa0a17c14140579a3d27ef2b9bdd0";
      sha256 = "0cdci8d8j3czhznp7gqn16w32j428njmzxr34pdsv40gggh0lbpn";
    };
  
    buildInputs = [
      gtk3 libappindicator-gtk3 dee qtbase qtimageformats ffmpeg openalSoft minizip
      libopus alsaLib libpulseaudio
    ];
  
    nativeBuildInputs = [ pkgconfig gyp cmake gcc ];
  
    patches = [ "${tgaur}/tdesktop.patch" ];
  
  
negative.code:       -e 's,-flto,,g'
  
      sed -i Telegram/gyp/qt.gypi \
        -e "s,/usr/include/qt/QtCore/,${qtbase.dev}/include/QtCore/,g" \
        -e 's,\d+",\d+" | head -n1,g'
      sed -i Telegram/gyp/qt_moc.gypi \
        -e "s,/usr/bin/moc,moc,g"
      sed -i Telegram/gyp/qt_rcc.gypi \
        -e "s,/usr/bin/rcc,rcc,g"
  