mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
Merge pull request #132860 from SuperSandro2000/telegram
tdesktop: fix qt5 selection, cleanup
This commit is contained in:
commit
0d496313cb
@ -1,7 +1,7 @@
|
||||
{ mkDerivation, lib, fetchFromGitHub, callPackage
|
||||
, pkg-config, cmake, ninja, python3, wrapGAppsHook, wrapQtAppsHook
|
||||
, extra-cmake-modules
|
||||
, qtbase, qtimageformats, gtk3, libsForQt5, lz4, xxHash
|
||||
, qtbase, qtimageformats, gtk3, kwayland, libdbusmenu, lz4, xxHash
|
||||
, ffmpeg, openalSoft, minizip, libopus, alsa-lib, libpulseaudio, range-v3
|
||||
, tl-expected, hunspell, glibmm, webkitgtk, jemalloc
|
||||
, rnnoise
|
||||
@ -12,8 +12,6 @@
|
||||
, xdg-utils, libsysprof-capture, libpsl, brotli
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
# Main reference:
|
||||
# - This package was originally based on the Arch package but all patches are now upstreamed:
|
||||
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/telegram-desktop
|
||||
@ -59,7 +57,7 @@ in mkDerivation rec {
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase qtimageformats gtk3 libsForQt5.kwayland libsForQt5.libdbusmenu lz4 xxHash
|
||||
qtbase qtimageformats gtk3 kwayland libdbusmenu lz4 xxHash
|
||||
ffmpeg openalSoft minizip libopus alsa-lib libpulseaudio range-v3
|
||||
tl-expected hunspell glibmm webkitgtk jemalloc
|
||||
rnnoise
|
||||
@ -85,7 +83,7 @@ in mkDerivation rec {
|
||||
wrapProgram $out/bin/telegram-desktop \
|
||||
"''${gappsWrapperArgs[@]}" \
|
||||
"''${qtWrapperArgs[@]}" \
|
||||
--prefix PATH : ${xdg-utils}/bin \
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-utils]} \
|
||||
--set XDG_RUNTIME_DIR "XDG-RUNTIME-DIR"
|
||||
sed -i $out/bin/telegram-desktop \
|
||||
-e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
|
||||
@ -96,7 +94,7 @@ in mkDerivation rec {
|
||||
updateScript = ./update.py;
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Telegram Desktop messaging app";
|
||||
longDescription = ''
|
||||
Desktop client for the Telegram messenger, based on the Telegram API and
|
||||
|
@ -27543,7 +27543,7 @@ in
|
||||
|
||||
taskopen = callPackage ../applications/misc/taskopen { };
|
||||
|
||||
tdesktop = qt5.callPackage ../applications/networking/instant-messengers/telegram/tdesktop {
|
||||
tdesktop = libsForQt5.callPackage ../applications/networking/instant-messengers/telegram/tdesktop {
|
||||
inherit (xorg) libpthreadstubs libXdmcp;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user