anchor.diff:      "CONFIG+=release"
       "DEFINES+=TDESKTOP_DISABLE_AUTOUPDATE"
       "DEFINES+=TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
  -    "INCLUDEPATH+=${gtk2.dev}/include/gtk-2.0"
  -    "INCLUDEPATH+=${glib.dev}/include/glib-2.0"
  -    "INCLUDEPATH+=${glib.out}/lib/glib-2.0/include"
  -    "INCLUDEPATH+=${cairo.dev}/include/cairo"
  -    "INCLUDEPATH+=${pango.dev}/include/pango-1.0"
  -    "INCLUDEPATH+=${gtk2.out}/lib/gtk-2.0/include"
  -    "INCLUDEPATH+=${gdk_pixbuf.dev}/include/gdk-pixbuf-2.0"
  -    "INCLUDEPATH+=${atk.dev}/include/atk-1.0"
  -    "INCLUDEPATH+=${libappindicator-gtk2}/include/libappindicator-0.1"
  -    "INCLUDEPATH+=${libunity}/include/unity"
  -    "INCLUDEPATH+=${dee}/include/dee-1.0"
  -    "INCLUDEPATH+=${libdbusmenu-glib}/include/libdbusmenu-glib-0.4"
       "INCLUDEPATH+=${breakpad}/include/breakpad"
       "QT_TDESKTOP_VERSION=${systemQt}"
  -    "LIBS+=-lcrypto"
  -    "LIBS+=-lssl"
     ];
   
     qtSrcs = [ qtbase.src qtimageformats.src ];
  
positive.code: 
  in stdenv.mkDerivation rec {
    name = "telegram-desktop-${version}";
    version = "0.9.56";
    qtVersion = lib.replaceStrings ["."] ["_"] packagedQt;
  
    src = fetchFromGitHub {
      owner = "telegramdesktop";
      repo = "tdesktop";
      rev = "v${version}";
      sha256 = "000ngg6arfb6mif0hvin099f83q3sn7mw4vfvrikskczblw3a5lc";
    };
  
    tgaur = fetchgit {
      url = "https://aur.archlinux.org/telegram-desktop.git";
      rev = "f8907d1ccaf8345c06232238342921213270e3d8";
      sha256 = "04jh0fsrh4iwg188d20z15qkxv05wa5lpd8h21yxx3jxqljpdkws";
    };
  
    buildInputs = [
  
negative.code:     sed -i 'Telegram/Telegram.pro' \
        -e 's,CUSTOM_API_ID,,g' \
        -e 's,/usr,/does-not-exist,g' \
        -e 's, -flto,,g' \
        -e 's,LIBS += .*libbreakpad_client.a,LIBS += ${breakpad}/lib/libbreakpad_client.a,' \
        -e 's, -static-libstdc++,,g' \
        -e '/LIBS += .*libxkbcommon.a/d'
  
      export qmakeFlags="$qmakeFlags QT_TDESKTOP_PATH=$PWD/../qt"
  
  