telegram-desktop: port to new darwin SDK handling (#353228)

authored by

Weijia Wang and committed by
GitHub
9ee8d709 c5738557

+11 -459
-2
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
··· 54 54 }; 55 55 56 56 patches = [ 57 - ./macos.patch 58 - ./macos-opengl.patch 59 57 ./macos-qt5.patch 60 58 (fetchpatch { 61 59 url = "https://gitlab.com/mnauw/cppgir/-/commit/c8bb1c6017a6f7f2e47bd10543aea6b3ec69a966.patch";
-66
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/macos-opengl.patch
··· 1 - diff --git a/Telegram/SourceFiles/media/view/media_view_pip.cpp b/Telegram/SourceFiles/media/view/media_view_pip.cpp 2 - index 655e7cf410..c356acbffe 100644 3 - --- a/Telegram/SourceFiles/media/view/media_view_pip.cpp 4 - +++ b/Telegram/SourceFiles/media/view/media_view_pip.cpp 5 - @@ -1333,7 +1333,7 @@ void Pip::setupStreaming() { 6 - Ui::GL::ChosenRenderer Pip::chooseRenderer( 7 - Ui::GL::Capabilities capabilities) { 8 - const auto use = Platform::IsMac() 9 - - ? true 10 - + ? false 11 - : capabilities.transparency; 12 - LOG(("OpenGL: %1 (PipPanel)").arg(Logs::b(use))); 13 - if (use) { 14 - Submodule Telegram/lib_ui contains modified content 15 - diff --git a/Telegram/lib_ui/ui/gl/gl_detection.cpp b/Telegram/lib_ui/ui/gl/gl_detection.cpp 16 - index 150eb8b..c7ce9f9 100644 17 - --- a/Telegram/lib_ui/ui/gl/gl_detection.cpp 18 - +++ b/Telegram/lib_ui/ui/gl/gl_detection.cpp 19 - @@ -236,7 +236,7 @@ Capabilities CheckCapabilities(QWidget *widget, bool avoidWidgetCreation) { 20 - 21 - Backend ChooseBackendDefault(Capabilities capabilities) { 22 - const auto use = ::Platform::IsMac() 23 - - ? true 24 - + ? false 25 - : ::Platform::IsWindows() 26 - ? capabilities.supported 27 - : capabilities.transparency; 28 - diff --git a/Telegram/lib_ui/ui/platform/mac/ui_window_mac.mm b/Telegram/lib_ui/ui/platform/mac/ui_window_mac.mm 29 - index 7b29363..22c4fb3 100644 30 - --- a/Telegram/lib_ui/ui/platform/mac/ui_window_mac.mm 31 - +++ b/Telegram/lib_ui/ui/platform/mac/ui_window_mac.mm 32 - @@ -16,7 +16,6 @@ 33 - #include <QtCore/QAbstractNativeEventFilter> 34 - #include <QtGui/QWindow> 35 - #include <QtGui/QtEvents> 36 - -#include <QOpenGLWidget> 37 - #include <Cocoa/Cocoa.h> 38 - 39 - @interface WindowObserver : NSObject { 40 - @@ -138,7 +137,6 @@ public: 41 - 42 - private: 43 - void init(); 44 - - void initOpenGL(); 45 - void resolveWeakPointers(); 46 - void revalidateWeakPointers() const; 47 - void initCustomTitle(); 48 - @@ -272,10 +270,6 @@ void WindowHelper::Private::enforceStyle() { 49 - } 50 - } 51 - 52 - -void WindowHelper::Private::initOpenGL() { 53 - - auto forceOpenGL = std::make_unique<QOpenGLWidget>(_owner->window()); 54 - -} 55 - - 56 - void WindowHelper::Private::resolveWeakPointers() { 57 - if (!_owner->window()->winId()) { 58 - _owner->window()->createWinId(); 59 - @@ -338,7 +332,6 @@ void WindowHelper::Private::initCustomTitle() { 60 - } 61 - 62 - void WindowHelper::Private::init() { 63 - - initOpenGL(); 64 - resolveWeakPointers(); 65 - initCustomTitle(); 66 - }
-171
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/macos.patch
··· 1 - diff --git a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 2 - index ef544803e9..69c61b3139 100644 3 - --- a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 4 - +++ b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 5 - @@ -97,9 +97,11 @@ void MacOverlayWidgetHelper::updateStyles(bool fullscreen) { 6 - [window setTitleVisibility:NSWindowTitleHidden]; 7 - [window setTitlebarAppearsTransparent:YES]; 8 - [window setStyleMask:[window styleMask] | NSWindowStyleMaskFullSizeContentView]; 9 - +#if 0 10 - if (@available(macOS 12.0, *)) { 11 - _data->topNotchSkip = [[window screen] safeAreaInsets].top; 12 - } 13 - +#endif 14 - } 15 - 16 - void MacOverlayWidgetHelper::refreshButtons(bool fullscreen) { 17 - Submodule Telegram/lib_base contains modified content 18 - diff --git a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 19 - index 7ce90d3..dac3c2c 100644 20 - --- a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 21 - +++ b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 22 - @@ -138,6 +138,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) { 23 - _observer = [[LowPowerModeObserver alloc] initWithCallback:std::move(wrapped)]; 24 - 25 - NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; 26 - +#if 0 27 - if (@available(macOS 12.0, *)) { 28 - [center 29 - addObserver: _observer 30 - @@ -145,6 +146,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) { 31 - name: NSProcessInfoPowerStateDidChangeNotification 32 - object: nil]; 33 - } 34 - +#endif 35 - [center 36 - addObserver: _observer 37 - selector: @selector(powerStateChanged:) 38 - @@ -178,11 +180,13 @@ std::optional<bool> BatterySaving::enabled() const { 39 - return std::nullopt; 40 - } 41 - NSProcessInfo *info = [NSProcessInfo processInfo]; 42 - +#if 0 43 - if (@available(macOS 12.0, *)) { 44 - if ([info isLowPowerModeEnabled]) { 45 - return true; 46 - } 47 - } 48 - +#endif 49 - const auto state = DetectBatteryState(); 50 - if (!state.has || !state.draining) { 51 - return false; 52 - Submodule Telegram/lib_webrtc contains modified content 53 - diff --git a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm b/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 54 - index 7521c08..5e22da2 100644 55 - --- a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 56 - +++ b/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 57 - @@ -364,6 +364,7 @@ EnvironmentMac::EnvironmentMac(not_null<EnvironmentDelegate*> delegate) 58 - DefaultCaptureDeviceChangedMonitor.registerEnvironment(this); 59 - AudioDeviceListChangedMonitor.registerEnvironment(this); 60 - 61 - +#if 0 62 - if (@available(macOS 14.0, *)) { 63 - const auto weak = base::make_weak(this); 64 - id block = [^(BOOL shouldBeMuted){ 65 - @@ -387,6 +388,7 @@ EnvironmentMac::EnvironmentMac(not_null<EnvironmentDelegate*> delegate) 66 - setInputMuteStateChangeHandler:block 67 - error:nil]; 68 - } 69 - +#endif 70 - } 71 - 72 - EnvironmentMac::~EnvironmentMac() { 73 - @@ -537,15 +539,18 @@ void EnvironmentMac::devicesRequested(DeviceType type) { 74 - } 75 - 76 - void EnvironmentMac::setCaptureMuted(bool muted) { 77 - +#if 0 78 - if (@available(macOS 14.0, *)) { 79 - if (!_captureMuteNotification) { 80 - const auto value = muted ? YES : NO; 81 - [[AVAudioApplication sharedInstance] setInputMuted:value error:nil]; 82 - } 83 - } 84 - +#endif 85 - } 86 - 87 - void EnvironmentMac::captureMuteSubscribe() { 88 - +#if 0 89 - if (@available(macOS 14.0, *)) { 90 - id observer = [[InputMuteObserver alloc] init]; 91 - [[[NSWorkspace sharedWorkspace] notificationCenter] 92 - @@ -578,6 +583,7 @@ void EnvironmentMac::captureMuteSubscribe() { 93 - [observer release]; 94 - }); 95 - } 96 - +#endif 97 - } 98 - 99 - void EnvironmentMac::captureMuteUnsubscribe() { 100 - @@ -595,6 +601,7 @@ void EnvironmentMac::captureMuteRestartAdm() { 101 - void EnvironmentMac::setCaptureMuteTracker( 102 - not_null<CaptureMuteTracker*> tracker, 103 - bool track) { 104 - +#if 0 105 - if (@available(macOS 14.0, *)) { 106 - if (track) { 107 - if (!_captureMuteTracker) { 108 - @@ -619,6 +626,7 @@ void EnvironmentMac::setCaptureMuteTracker( 109 - } 110 - } 111 - } 112 - +#endif 113 - } 114 - 115 - std::unique_ptr<Environment> CreateEnvironment( 116 - Submodule Telegram/lib_webview contains modified content 117 - diff --git a/Telegram/lib_webview/webview/platform/mac/webview_mac.mm b/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 118 - index e7808fc..34020f0 100644 119 - --- a/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 120 - +++ b/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 121 - @@ -334,6 +334,7 @@ Instance::Instance(Config config) { 122 - _handler = [[Handler alloc] initWithMessageHandler:config.messageHandler navigationStartHandler:config.navigationStartHandler navigationDoneHandler:config.navigationDoneHandler dialogHandler:config.dialogHandler dataRequested:handleDataRequest]; 123 - _dataRequestHandler = std::move(config.dataRequestHandler); 124 - [configuration setURLSchemeHandler:_handler forURLScheme:stdToNS(kDataUrlScheme)]; 125 - +#if 0 126 - if (@available(macOS 14, *)) { 127 - if (config.userDataToken != LegacyStorageIdToken().toStdString()) { 128 - NSUUID *uuid = UuidFromToken(config.userDataToken); 129 - @@ -341,10 +342,13 @@ Instance::Instance(Config config) { 130 - [uuid release]; 131 - } 132 - } 133 - +#endif 134 - _webview = [[WKWebView alloc] initWithFrame:NSZeroRect configuration:configuration]; 135 - +#if 0 136 - if (@available(macOS 13.3, *)) { 137 - _webview.inspectable = config.debug ? YES : NO; 138 - } 139 - +#endif 140 - [_manager addScriptMessageHandler:_handler name:@"external"]; 141 - [_webview setNavigationDelegate:_handler]; 142 - [_webview setUIDelegate:_handler]; 143 - @@ -700,10 +704,12 @@ void *Instance::winId() { 144 - } 145 - 146 - void Instance::setOpaqueBg(QColor opaqueBg) { 147 - +#if 0 148 - if (@available(macOS 12.0, *)) { 149 - [_webview setValue: @NO forKey: @"drawsBackground"]; 150 - [_webview setUnderPageBackgroundColor:[NSColor clearColor]]; 151 - } 152 - +#endif 153 - } 154 - 155 - void Instance::resizeToWindow() { 156 - @@ -739,6 +745,7 @@ std::string GenerateStorageToken() { 157 - } 158 - 159 - void ClearStorageDataByToken(const std::string &token) { 160 - +#if 0 161 - if (@available(macOS 14, *)) { 162 - if (!token.empty() && token != LegacyStorageIdToken().toStdString()) { 163 - if (NSUUID *uuid = UuidFromToken(token)) { 164 - @@ -754,6 +761,7 @@ void ClearStorageDataByToken(const std::string &token) { 165 - } 166 - } 167 - } 168 - +#endif 169 - } 170 - 171 - } // namespace Webview
+4 -46
pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
··· 6 6 , cmake 7 7 , ninja 8 8 , clang 9 - , lld 10 9 , python3 11 10 , wrapQtAppsHook 12 11 , tg_owt ? callPackage ./tg_owt.nix { inherit stdenv; } ··· 38 37 , glib-networking 39 38 , webkitgtk_4_1 40 39 , libicns 41 - , darwin 40 + , apple-sdk_15 42 41 , nix-update-script 43 42 }: 44 43 ··· 60 59 fetchSubmodules = true; 61 60 hash = "sha256-frz425V5eRulNVxCf457TWQAzU/f9/szD/sx3/LYQ2Y="; 62 61 }; 63 - 64 - patches = [ 65 - ./macos.patch 66 - ]; 67 62 68 63 postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' 69 64 substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp \ ··· 98 93 gobject-introspection 99 94 ] ++ lib.optionals (stdenv.hostPlatform.isLinux && withWebKitGTK) [ 100 95 wrapGAppsHook3 101 - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 102 - lld 103 96 ]; 104 97 105 98 buildInputs = [ ··· 130 123 ] ++ lib.optionals (stdenv.hostPlatform.isLinux && withWebKitGTK) [ 131 124 glib-networking 132 125 webkitgtk_4_1 133 - ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ 134 - Cocoa 135 - CoreFoundation 136 - CoreServices 137 - CoreText 138 - CoreGraphics 139 - CoreMedia 140 - OpenGL 141 - AudioUnit 142 - ApplicationServices 143 - Foundation 144 - AGL 145 - Security 146 - SystemConfiguration 147 - Carbon 148 - AudioToolbox 149 - VideoToolbox 150 - VideoDecodeAcceleration 151 - AVFoundation 152 - CoreAudio 153 - CoreVideo 154 - CoreMediaIO 155 - QuartzCore 156 - AppKit 157 - CoreWLAN 158 - WebKit 159 - IOKit 160 - GSS 161 - MediaPlayer 162 - IOSurface 163 - Metal 164 - NaturalLanguage 165 - LocalAuthentication 126 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 127 + apple-sdk_15 166 128 libicns 167 - ]); 168 - 169 - env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { 170 - NIX_CFLAGS_LINK = "-fuse-ld=lld"; 171 - }; 129 + ]; 172 130 173 131 cmakeFlags = [ 174 132 # We're allowed to used the API ID of the Snap package:
-145
pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/macos.patch
··· 1 - diff --git a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 2 - index ef544803e9..69c61b3139 100644 3 - --- a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 4 - +++ b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm 5 - @@ -97,9 +97,11 @@ void MacOverlayWidgetHelper::updateStyles(bool fullscreen) { 6 - [window setTitleVisibility:NSWindowTitleHidden]; 7 - [window setTitlebarAppearsTransparent:YES]; 8 - [window setStyleMask:[window styleMask] | NSWindowStyleMaskFullSizeContentView]; 9 - +#if 0 10 - if (@available(macOS 12.0, *)) { 11 - _data->topNotchSkip = [[window screen] safeAreaInsets].top; 12 - } 13 - +#endif 14 - } 15 - 16 - void MacOverlayWidgetHelper::refreshButtons(bool fullscreen) { 17 - Submodule Telegram/lib_base contains modified content 18 - diff --git a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 19 - index 7ce90d3..dac3c2c 100644 20 - --- a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 21 - +++ b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm 22 - @@ -138,6 +138,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) { 23 - _observer = [[LowPowerModeObserver alloc] initWithCallback:std::move(wrapped)]; 24 - 25 - NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; 26 - +#if 0 27 - if (@available(macOS 12.0, *)) { 28 - [center 29 - addObserver: _observer 30 - @@ -145,6 +146,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) { 31 - name: NSProcessInfoPowerStateDidChangeNotification 32 - object: nil]; 33 - } 34 - +#endif 35 - [center 36 - addObserver: _observer 37 - selector: @selector(powerStateChanged:) 38 - @@ -178,11 +180,13 @@ std::optional<bool> BatterySaving::enabled() const { 39 - return std::nullopt; 40 - } 41 - NSProcessInfo *info = [NSProcessInfo processInfo]; 42 - +#if 0 43 - if (@available(macOS 12.0, *)) { 44 - if ([info isLowPowerModeEnabled]) { 45 - return true; 46 - } 47 - } 48 - +#endif 49 - const auto state = DetectBatteryState(); 50 - if (!state.has || !state.draining) { 51 - return false; 52 - Submodule Telegram/lib_webrtc contains modified content 53 - diff --git a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm b/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 54 - index 7521c08..5e22da2 100644 55 - --- a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 56 - +++ b/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm 57 - @@ -364,6 +364,7 @@ EnvironmentMac::EnvironmentMac(not_null<EnvironmentDelegate*> delegate) 58 - DefaultCaptureDeviceChangedMonitor.registerEnvironment(this); 59 - AudioDeviceListChangedMonitor.registerEnvironment(this); 60 - 61 - +#if 0 62 - if (@available(macOS 14.0, *)) { 63 - const auto weak = base::make_weak(this); 64 - id block = [^(BOOL shouldBeMuted){ 65 - @@ -387,6 +388,7 @@ EnvironmentMac::EnvironmentMac(not_null<EnvironmentDelegate*> delegate) 66 - setInputMuteStateChangeHandler:block 67 - error:nil]; 68 - } 69 - +#endif 70 - } 71 - 72 - EnvironmentMac::~EnvironmentMac() { 73 - @@ -537,15 +539,18 @@ void EnvironmentMac::devicesRequested(DeviceType type) { 74 - } 75 - 76 - void EnvironmentMac::setCaptureMuted(bool muted) { 77 - +#if 0 78 - if (@available(macOS 14.0, *)) { 79 - if (!_captureMuteNotification) { 80 - const auto value = muted ? YES : NO; 81 - [[AVAudioApplication sharedInstance] setInputMuted:value error:nil]; 82 - } 83 - } 84 - +#endif 85 - } 86 - 87 - void EnvironmentMac::captureMuteSubscribe() { 88 - +#if 0 89 - if (@available(macOS 14.0, *)) { 90 - id observer = [[InputMuteObserver alloc] init]; 91 - [[[NSWorkspace sharedWorkspace] notificationCenter] 92 - @@ -578,6 +583,7 @@ void EnvironmentMac::captureMuteSubscribe() { 93 - [observer release]; 94 - }); 95 - } 96 - +#endif 97 - } 98 - 99 - void EnvironmentMac::captureMuteUnsubscribe() { 100 - @@ -595,6 +601,7 @@ void EnvironmentMac::captureMuteRestartAdm() { 101 - void EnvironmentMac::setCaptureMuteTracker( 102 - not_null<CaptureMuteTracker*> tracker, 103 - bool track) { 104 - +#if 0 105 - if (@available(macOS 14.0, *)) { 106 - if (track) { 107 - if (!_captureMuteTracker) { 108 - @@ -619,6 +626,7 @@ void EnvironmentMac::setCaptureMuteTracker( 109 - } 110 - } 111 - } 112 - +#endif 113 - } 114 - 115 - std::unique_ptr<Environment> CreateEnvironment( 116 - Submodule Telegram/lib_webview contains modified content 117 - diff --git a/Telegram/lib_webview/webview/platform/mac/webview_mac.mm b/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 118 - index 738e574..80ff5f0 100644 119 - --- a/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 120 - +++ b/Telegram/lib_webview/webview/platform/mac/webview_mac.mm 121 - @@ -314,9 +314,11 @@ Instance::Instance(Config config) { 122 - _dataRequestHandler = std::move(config.dataRequestHandler); 123 - [configuration setURLSchemeHandler:_handler forURLScheme:stdToNS(kDataUrlScheme)]; 124 - _webview = [[WKWebView alloc] initWithFrame:NSZeroRect configuration:configuration]; 125 - +#if 0 126 - if (@available(macOS 13.3, *)) { 127 - _webview.inspectable = config.debug ? YES : NO; 128 - } 129 - +#endif 130 - [_manager addScriptMessageHandler:_handler name:@"external"]; 131 - [_webview setNavigationDelegate:_handler]; 132 - [_webview setUIDelegate:_handler]; 133 - @@ -658,10 +660,12 @@ void *Instance::winId() { 134 - } 135 - 136 - void Instance::setOpaqueBg(QColor opaqueBg) { 137 - +#if 0 138 - if (@available(macOS 12.0, *)) { 139 - [_webview setValue: @NO forKey: @"drawsBackground"]; 140 - [_webview setUnderPageBackgroundColor:[NSColor clearColor]]; 141 - } 142 - +#endif 143 - } 144 - 145 - void Instance::resizeToWindow() {
+4 -21
pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/tg_owt.nix
··· 27 27 mesa, 28 28 libdrm, 29 29 libGL, 30 - darwin, 30 + apple-sdk_15, 31 31 unstableGitUpdater, 32 32 }: 33 33 ··· 89 89 libdrm 90 90 libGL 91 91 ] 92 - ++ lib.optionals stdenv.hostPlatform.isDarwin ( 93 - with darwin.apple_sdk.frameworks; 94 - [ 95 - Cocoa 96 - AppKit 97 - IOKit 98 - IOSurface 99 - Foundation 100 - AVFoundation 101 - CoreMedia 102 - VideoToolbox 103 - CoreGraphics 104 - CoreVideo 105 - OpenGL 106 - Metal 107 - MetalKit 108 - CoreFoundation 109 - ApplicationServices 110 - ] 111 - ); 92 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 93 + apple-sdk_15 94 + ]; 112 95 113 96 passthru.updateScript = unstableGitUpdater { }; 114 97
+1 -2
pkgs/by-name/_6/_64gram/package.nix
··· 41 41 homepage = "https://github.com/TDesktop-x64/tdesktop"; 42 42 changelog = "https://github.com/TDesktop-x64/tdesktop/releases/tag/v${version}"; 43 43 maintainers = with maintainers; [ clot27 ]; 44 - mainProgram = "telegram-desktop"; 45 - broken = stdenv.hostPlatform.isDarwin; 44 + mainProgram = if stdenv.hostPlatform.isLinux then "telegram-desktop" else "Telegram"; 46 45 }; 47 46 })
+2 -6
pkgs/top-level/all-packages.nix
··· 30218 30218 30219 30219 kondo = callPackage ../applications/misc/kondo { }; 30220 30220 30221 - kotatogram-desktop = callPackage ../applications/networking/instant-messengers/telegram/kotatogram-desktop { 30222 - stdenv = if stdenv.hostPlatform.isDarwin 30223 - then overrideSDK stdenv "11.0" 30224 - else stdenv; 30225 - }; 30221 + kotatogram-desktop = callPackage ../applications/networking/instant-messengers/telegram/kotatogram-desktop { }; 30226 30222 30227 30223 kotatogram-desktop-with-webkit = callPackage ../applications/networking/instant-messengers/telegram/kotatogram-desktop/with-webkit.nix { }; 30228 30224 ··· 32531 32527 32532 32528 telegram-desktop = kdePackages.callPackage ../applications/networking/instant-messengers/telegram/telegram-desktop { 32533 32529 stdenv = if stdenv.hostPlatform.isDarwin 32534 - then overrideSDK stdenv "11.0" 32530 + then llvmPackages_19.stdenv 32535 32531 else stdenv; 32536 32532 }; 32537 32533