telegram-desktop: 4.8.1 -> 4.8.3

This commit is contained in:
Nick Cao 2023-06-02 14:39:06 +08:00
parent 9eee76ae0d
commit 4fb5325fdf
No known key found for this signature in database

View File

@ -6,6 +6,7 @@
, cmake
, ninja
, python3
, gobject-introspection
, wrapGAppsHook
, wrapQtAppsHook
, extra-cmake-modules
@ -13,8 +14,9 @@
, qtwayland
, qtsvg
, qtimageformats
, qt5compat
, gtk3
, boost
, fmt
, libdbusmenu
, lz4
, xxHash
@ -74,14 +76,14 @@ let
in
stdenv.mkDerivation rec {
pname = "telegram-desktop";
version = "4.8.1";
version = "4.8.3";
src = fetchFromGitHub {
owner = "telegramdesktop";
repo = "tdesktop";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0mxxfh70dffkrq76nky3pwrk10s1q4ahxx2ddb58dz8igq6pl4zi";
hash = "sha256-fvg9SFHRHeJVogYQ+vyVqGyLGnOjM5Osi3H0SNGe9fY=";
};
patches = [
@ -103,6 +105,8 @@ stdenv.mkDerivation rec {
--replace '"libpulse.so.0"' '"${libpulseaudio}/lib/libpulse.so.0"'
substituteInPlace Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp \
--replace '"libwebkitgtk-6.0.so.4"' '"${webkitgtk_6_0}/lib/libwebkitgtk-6.0.so.4"'
substituteInPlace cmake/external/glib/CMakeLists.txt \
--replace 'add_subdirectory(cppgir)' 'add_subdirectory(cppgir EXCLUDE_FROM_ALL)'
'';
# We want to run wrapProgram manually (with additional parameters)
@ -114,6 +118,7 @@ stdenv.mkDerivation rec {
cmake
ninja
python3
gobject-introspection
wrapGAppsHook
wrapQtAppsHook
extra-cmake-modules
@ -124,8 +129,9 @@ stdenv.mkDerivation rec {
qtwayland
qtsvg
qtimageformats
qt5compat
gtk3
boost
fmt
libdbusmenu
lz4
xxHash
@ -174,6 +180,11 @@ stdenv.mkDerivation rec {
"-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF"
];
preBuild = ''
# for cppgir to locate gir files
export GI_GIR_PATH="$XDG_DATA_DIRS"
'';
postFixup = ''
# This is necessary to run Telegram in a pure environment.
# We also use gappsWrapperArgs from wrapGAppsHook.