anchor.diff:        -e 's,LIBS += .*libz.a,LIBS += -lz,' \
         -e 's,LIBS += .*libbreakpad_client.a,LIBS += ${breakpad}/lib/libbreakpad_client.a,' \
         -e 's, -flto,,g' \
  -      -e 's, -static-libstdc++,,g'
  +      -e 's, -static-libstdc++,,g' \
  +      -e 's,${packagedQt},${qtbase.version},g'
   
       export QMAKE=$PWD/../qt/bin/qmake
       ( mkdir -p ../Libraries
  
positive.code: 
  let
    system-x86_64 = lib.elem stdenv.system lib.platforms.x86_64;
  in stdenv.mkDerivation rec {
    name = "telegram-desktop-${version}";
    version = "0.9.49";
    qtVersion = lib.replaceStrings ["."] ["_"] qtbase.version;
  
    src = fetchFromGitHub {
      owner = "telegramdesktop";
  
negative.code:       for i in $qtSrcs; do
          tar -xaf $i
        done
        cd qtbase-*
        patch -p1 < ../../$sourceRoot/Telegram/Patches/qtbase_${qtVersion}.diff
        for i in $qtPatches; do
          patch -p1 < $i
        done
        ${qtbase.postPatch}
        cd ..
  
        export configureFlags="-prefix "$PWD/../qt" -release -opensource -confirm-license -system-zlib \
          -system-libpng -system-libjpeg -system-freetype -system-harfbuzz -system-pcre -system-xcb \
          -system-xkbcommon-x11 -no-opengl -static -nomake examples -nomake tests \
          -openssl-linked -dbus-linked -system-sqlite -verbose \
  