git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #64589 from uHOOCCOOHu/bump/telegram-1.7.14

tdesktop: 1.7.10 -> 1.7.14

commit08b828d1c5169c08bce148df53cb1215b58e64d0 authorElis Hirwing <elis@hirwing.se> dateThu 11 Jul 2019, 08:41 (7 years ago) parent9c04b1c1bc8cd8
2 files changed+19−11
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+4−4 pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nix+15−7
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+4−4
@@ -4,11 +4,11 @@ let
44 mkTelegram = args: qt5.callPackage (import ./generic.nix args) { };
55 stableVersion = {
66 stable = true;
7− version = "1.7.10";
8− sha256Hash = "04if7siv0ib5sbdkdc7vwmxyjy3fnijrshgc8i8m79marfkn3wac";
7+ version = "1.7.14";
8+ sha256Hash = "1bw804a9kffmn23wv0570wihbvfm7jy9cqmxlv196f4j7bw7zkv3";
99 # svn log svn://svn.archlinux.org/community/telegram-desktop/trunk
10− archPatchesRevision = "480743";
11− archPatchesHash = "0jfyp642l2850yzgrw3irq8bn6vl44rx2693c5cshwbihd212af7";
10+ archPatchesRevision = "487779";
11+ archPatchesHash = "0f09hvimb66xqksb2v0zc4ryshx7y7z0rafzjd99x37rpib9f3kq";
1212 };
1313in {
1414 stable = mkTelegram stableVersion;
pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nix+15−7
@@ -28,13 +28,17 @@ mkDerivation rec {
2828 sha256 = archPatchesHash;
2929 };
3030
31− # TODO: libtgvoip.patch no-gtk2.patch
32− # TODO: Avoid tdesktop_lottie_animation_qtdebug.patch and tdesktop_qtlottie_qtdebug.patch
33− patches = [ "${archPatches}/tdesktop.patch" "${archPatches}/tdesktop_lottie_animation_qtdebug.patch" ];
31+ patches = [
32+ "${archPatches}/tdesktop.patch"
33+ "${archPatches}/no-gtk2.patch"
34+ # "${archPatches}/Use-system-wide-font.patch"
35+ "${archPatches}/tdesktop_lottie_animation_qtdebug.patch"
36+ "${archPatches}/issue6219.patch"
37+ ];
3438
3539 postPatch = ''
3640 substituteInPlace Telegram/SourceFiles/platform/linux/linux_libs.cpp \
37− --replace '"appindicator"' '"${libappindicator-gtk3}/lib/libappindicator3.so"'
41+ --replace '"appindicator3"' '"${libappindicator-gtk3}/lib/libappindicator3.so"'
3842 substituteInPlace Telegram/SourceFiles/platform/linux/linux_libnotify.cpp \
3943 --replace '"notify"' '"${libnotify}/lib/libnotify.so"'
4044 '';
@@ -75,12 +79,14 @@ mkDerivation rec {
7579 CPPFLAGS = NIX_CFLAGS_COMPILE;
7680
7781 preConfigure = ''
82+ patch -R -Np1 -i "${archPatches}/demibold.patch"
83+
7884 pushd "Telegram/ThirdParty/libtgvoip"
7985 patch -Np1 -i "${archPatches}/libtgvoip.patch"
8086 popd
81− pushd "Telegram/ThirdParty/qtlottie"
82− patch -Np1 -i "${archPatches}/tdesktop_qtlottie_qtdebug.patch"
83− popd
87+
88+ # disable static-qt for rlottie
89+ sed "/RLOTTIE_WITH_STATIC_QT/d" -i "Telegram/gyp/lib_rlottie.gyp"
8490
8591 sed -i Telegram/gyp/telegram_linux.gypi \
8692 -e 's,/usr,/does-not-exist,g' \
@@ -118,6 +124,8 @@ mkDerivation rec {
118124 export ASM=$(type -p gcc)
119125 '';
120126
127+ cmakeFlags = [ "-UTDESKTOP_OFFICIAL_TARGET" ];
128+
121129 installPhase = ''
122130 install -Dm755 Telegram $out/bin/telegram-desktop
123131