@@ -20,27 +20,33 @@ with lib;
2020
2121let
2222 tg_owt = callPackage ./tg_owt.nix {};
23− webviewPatch = fetchpatch {
24− url = "https://raw.githubusercontent.com/archlinux/svntogit-community/013eff77a13b6c2629a04e07a4d09dbe60c8ca48/trunk/fix-webview-includes.patch";
25− sha256 = "0112zaysf3f02dd4bgqc5hwg66h1bfj8r4yjzb06sfi0pl9vl96l";
26− };
27−
2823in mkDerivation rec {
2924 pname = "telegram-desktop";
30− version = "2.7.4";
25+ version = "2.7.5";
3126
3227 # Telegram-Desktop with submodules
3328 src = fetchurl {
3429 url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
35− sha256 = "1cigqvxa8lp79y7sp2w2izmmikxaxzrq9bh5ns3cy16z985nyllp";
30+ sha256 = "sha256-9GxBw5ii9Musjq7D3KMf/P5BA4h690EgXRbhynHwO98=";
3631 };
3732
33+ patches = [
34+ # fixes issue with ffmpeg>=4.4 crashes, hasn't been upstreamed yet
35+ (fetchpatch {
36+ url = "https://raw.githubusercontent.com/gentoo/gentoo/1c91884873968997be4b0c954169d04dc839f1db/net-im/telegram-desktop/files/tdesktop-2.7.4-voice-crash.patch";
37+ sha256 = "sha256-inLXcP70yJlkkmdeXlc3HRL7Vt+Sf00LLJG33gwBKdY=";
38+ })
39+ (fetchpatch {
40+ url = "https://raw.githubusercontent.com/gentoo/gentoo/1c91884873968997be4b0c954169d04dc839f1db/net-im/telegram-desktop/files/tdesktop-2.7.4-voice-ffmpeg44.patch";
41+ sha256 = "sha256-p57LipNf7BDhVvNKRuicVqx0vU6IBL/Cvr5BAfLF4Hs=";
42+ })
43+ ];
44+
3845 postPatch = ''
3946 substituteInPlace Telegram/lib_spellcheck/spellcheck/platform/linux/linux_enchant.cpp \
4047 --replace '"libenchant-2.so.2"' '"${enchant2}/lib/libenchant-2.so.2"'
4148 substituteInPlace Telegram/CMakeLists.txt \
4249 --replace '"''${TDESKTOP_LAUNCHER_BASENAME}.appdata.xml"' '"''${TDESKTOP_LAUNCHER_BASENAME}.metainfo.xml"'
43− patch -d Telegram/lib_webview -p1 < "${webviewPatch}"
4450 '';
4551
4652 # We want to run wrapProgram manually (with additional parameters)