From 89c4e998997da715646ca1dd00150b414764a153 Mon Sep 17 00:00:00 2001 From: Tom van Dijk <18gatenmaker6@gmail.com> Date: Wed, 4 Jun 2025 22:34:39 +0200 Subject: [PATCH] telegram-desktop: 5.14.3 -> 5.15.2 --- .../telegram/telegram-desktop/unwrapped.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/unwrapped.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/unwrapped.nix index 4af7adf07264..2e0ae23cc855 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/unwrapped.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/unwrapped.nix @@ -10,6 +10,10 @@ python3, tdlib, tg_owt ? callPackage ./tg_owt.nix { inherit stdenv; }, + libavif, + libheif, + libjxl, + kimageformats, qtbase, qtimageformats, qtsvg, @@ -47,14 +51,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "telegram-desktop-unwrapped"; - version = "5.14.3"; + version = "5.15.2"; src = fetchFromGitHub { owner = "telegramdesktop"; repo = "tdesktop"; rev = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-nNYQpWbBK+E/LAbwTWpNUhs2+wb8iuMfqkxJKjaFmhg="; + hash = "sha256-T+gzNY3jPfCWjV9yFEGlz8kNGeAioyDUD2qazM/j05I="; }; postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' @@ -98,6 +102,13 @@ stdenv.mkDerivation (finalAttrs: { boost ada (tdlib.override { tde2eOnly = true; }) + # even though the last 3 dependencies are already in `kimageformats`, + # because of a logic error in the cmake files, in td 5.15.{1,2} it + # doesn't link when you don't add them explicitly + kimageformats + libavif + libheif + libjxl ] ++ lib.optionals stdenv.hostPlatform.isLinux [ protobuf