mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 04:27:27 +03:00
Merge pull request #323689 from NickCao/telegram-desktop
telegram-desktop: 5.1.8 -> 5.2.2
This commit is contained in:
commit
38fbfd3011
@ -1,6 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, callPackage
|
, callPackage
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, cmake
|
, cmake
|
||||||
@ -64,14 +63,14 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "telegram-desktop";
|
pname = "telegram-desktop";
|
||||||
version = "5.1.8";
|
version = "5.2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "telegramdesktop";
|
owner = "telegramdesktop";
|
||||||
repo = "tdesktop";
|
repo = "tdesktop";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-YTCvniC8THoz0BUM/gkr97rhbbSVQ+SCE1H3qS68lIM=";
|
hash = "sha256-rvd4Ei4MpWiilHCV291UrJkHaUcwth9AWc3PSqjj+EI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -79,10 +78,7 @@ stdenv.mkDerivation rec {
|
|||||||
# the generated .desktop files contains references to unwrapped tdesktop, breaking scheme handling
|
# the generated .desktop files contains references to unwrapped tdesktop, breaking scheme handling
|
||||||
# and the scheme handler is already registered in the packaged .desktop file, rendering this unnecessary
|
# and the scheme handler is already registered in the packaged .desktop file, rendering this unnecessary
|
||||||
# see https://github.com/NixOS/nixpkgs/issues/218370
|
# see https://github.com/NixOS/nixpkgs/issues/218370
|
||||||
(fetchpatch {
|
./scheme.patch
|
||||||
url = "https://salsa.debian.org/debian/telegram-desktop/-/raw/09b363ed5a4fcd8ecc3282b9bfede5fbb83f97ef/debian/patches/Disable-register-custom-scheme.patch";
|
|
||||||
hash = "sha256-B8X5lnSpwwdp1HlvyXJWQPybEN+plOwimdV5gW6aY2Y=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.isLinux ''
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
@ -179,6 +175,7 @@ stdenv.mkDerivation rec {
|
|||||||
IOSurface
|
IOSurface
|
||||||
Metal
|
Metal
|
||||||
NaturalLanguage
|
NaturalLanguage
|
||||||
|
LocalAuthentication
|
||||||
libicns
|
libicns
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/Telegram/SourceFiles/core/application.cpp b/Telegram/SourceFiles/core/application.cpp
|
||||||
|
index e3e0de6c6..d5851bd6e 100644
|
||||||
|
--- a/Telegram/SourceFiles/core/application.cpp
|
||||||
|
+++ b/Telegram/SourceFiles/core/application.cpp
|
||||||
|
@@ -421,7 +421,6 @@ void Application::run() {
|
||||||
|
|
||||||
|
void Application::autoRegisterUrlScheme() {
|
||||||
|
if (!OptionSkipUrlSchemeRegister.value()) {
|
||||||
|
- InvokeQueued(this, [] { RegisterUrlScheme(); });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user