From eea194ff9eaa2e81e5881a50facf3d4a8e956007 Mon Sep 17 00:00:00 2001 From: lyranico Date: Sat, 1 Feb 2025 09:07:23 +0800 Subject: [PATCH] ayugram-desktop: 5.8.3 -> 5.10.3 --- pkgs/by-name/ay/ayugram-desktop/package.nix | 26 ++------------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/ay/ayugram-desktop/package.nix b/pkgs/by-name/ay/ayugram-desktop/package.nix index d1e5a0799e2f..44d94cff8808 100644 --- a/pkgs/by-name/ay/ayugram-desktop/package.nix +++ b/pkgs/by-name/ay/ayugram-desktop/package.nix @@ -12,38 +12,16 @@ telegram-desktop.override { unwrapped = telegram-desktop.unwrapped.overrideAttrs ( finalAttrs: previousAttrs: { pname = "ayugram-desktop-unwrapped"; - version = "5.8.3"; + version = "5.10.3"; src = fetchFromGitHub { owner = "AyuGram"; repo = "AyuGramDesktop"; tag = "v${finalAttrs.version}"; - hash = "sha256-bgfqYI77kxHmFZB6LCdLzeIFv6bfsXXJrrkbz5MD6Q0="; + hash = "sha256-ieHIBBm97ZZ+5EK4k3QTkhrazHnhiLNXpQoQFtzn8KY="; fetchSubmodules = true; }; - # Since the original .desktop file is for Flatpak, we need to fix it - postPatch = - (previousAttrs.postPatch or "") - + - lib.optionalString stdenv.hostPlatform.isLinux - # Rudiment: related functionality is disabled by disabling the auto-updater - # and it breaks the .desktop file in Aylur's Gtk Shell - # (with it, it causes the application to not be seen by the app launcher) - # https://github.com/AyuGram/AyuGramDesktop/blob/5566a8ca0abe448a7f1865222b64b68ed735ee07/Telegram/SourceFiles/platform/linux/specific_linux.cpp#L455 - '' - substituteInPlace lib/xdg/com.ayugram.desktop.desktop \ - --replace-fail "DESKTOPINTEGRATION=1 " "" - '' - + - # Since we aren't in Flatpak, "DBusActivatable" has no unit to - # activate and it causes the .desktop file to show the error "Could not activate remote peer - # 'com.ayugram.desktop': unit failed" (at least on KDE6) - '' - substituteInPlace lib/xdg/com.ayugram.desktop.desktop \ - --replace-fail "DBusActivatable=true" "" - ''; - meta = previousAttrs.meta // { mainProgram = if stdenv.hostPlatform.isLinux then "ayugram-desktop" else "AyuGram"; description = "Desktop Telegram client with good customization and Ghost mode";