summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-06-03 10:16:12 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-06-03 22:24:50 -0700
commit1de618903eb5fa9aace4aabf58fc25a730584fe1 (patch)
treea7e58ea6546721ec23be2110a245f9ad9f553ccd
parentMerge pull request #125582 from NixOS/backport-125576-to-release-21.05 (diff)
downloadnixpkgs-1de618903eb5fa9aace4aabf58fc25a730584fe1.tar.gz
tdesktop: 2.7.4 -> 2.7.5
(cherry picked from commit be72f6a7ce5f2cefbfc7ade175669494e65c3d8a)
-rw-r--r--pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
index 372c00196a2d..ae2da30fd00a 100644
--- a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
@@ -20,27 +20,33 @@ with lib;
let
tg_owt = callPackage ./tg_owt.nix {};
- webviewPatch = fetchpatch {
- url = "https://raw.githubusercontent.com/archlinux/svntogit-community/013eff77a13b6c2629a04e07a4d09dbe60c8ca48/trunk/fix-webview-includes.patch";
- sha256 = "0112zaysf3f02dd4bgqc5hwg66h1bfj8r4yjzb06sfi0pl9vl96l";
- };
-
in mkDerivation rec {
pname = "telegram-desktop";
- version = "2.7.4";
+ version = "2.7.5";
# Telegram-Desktop with submodules
src = fetchurl {
url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
- sha256 = "1cigqvxa8lp79y7sp2w2izmmikxaxzrq9bh5ns3cy16z985nyllp";
+ sha256 = "sha256-9GxBw5ii9Musjq7D3KMf/P5BA4h690EgXRbhynHwO98=";
};
+ patches = [
+ # fixes issue with ffmpeg>=4.4 crashes, hasn't been upstreamed yet
+ (fetchpatch {
+ url = "https://raw.githubusercontent.com/gentoo/gentoo/1c91884873968997be4b0c954169d04dc839f1db/net-im/telegram-desktop/files/tdesktop-2.7.4-voice-crash.patch";
+ sha256 = "sha256-inLXcP70yJlkkmdeXlc3HRL7Vt+Sf00LLJG33gwBKdY=";
+ })
+ (fetchpatch {
+ url = "https://raw.githubusercontent.com/gentoo/gentoo/1c91884873968997be4b0c954169d04dc839f1db/net-im/telegram-desktop/files/tdesktop-2.7.4-voice-ffmpeg44.patch";
+ sha256 = "sha256-p57LipNf7BDhVvNKRuicVqx0vU6IBL/Cvr5BAfLF4Hs=";
+ })
+ ];
+
postPatch = ''
substituteInPlace Telegram/lib_spellcheck/spellcheck/platform/linux/linux_enchant.cpp \
--replace '"libenchant-2.so.2"' '"${enchant2}/lib/libenchant-2.so.2"'
substituteInPlace Telegram/CMakeLists.txt \
--replace '"''${TDESKTOP_LAUNCHER_BASENAME}.appdata.xml"' '"''${TDESKTOP_LAUNCHER_BASENAME}.metainfo.xml"'
- patch -d Telegram/lib_webview -p1 < "${webviewPatch}"
'';
# We want to run wrapProgram manually (with additional parameters)