From dbd66e11cc09cc17d188ca6f62a8412f66d00907 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Fri, 12 Jan 2024 10:15:15 +0100 Subject: [PATCH] simplex-chat-desktop: 5.4.2 -> 5.4.4 also add updateScript (depends on #280492) --- pkgs/by-name/si/simplex-chat-desktop/package.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/si/simplex-chat-desktop/package.nix b/pkgs/by-name/si/simplex-chat-desktop/package.nix index 510762572c25..2fb556080961 100644 --- a/pkgs/by-name/si/simplex-chat-desktop/package.nix +++ b/pkgs/by-name/si/simplex-chat-desktop/package.nix @@ -1,15 +1,16 @@ { lib , appimageTools , fetchurl +, gitUpdater }: let pname = "simplex-chat-desktop"; - version = "5.4.2"; + version = "5.4.4"; src = fetchurl { url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-x86_64.AppImage"; - hash = "sha256-t9wFOKGmy/mGFtETv1EkturAM4Swq1q/zoegpQ7dcrc="; + hash = "sha256-f4P31e099bKBKsavP5f+xBGsqQfM6CYgUtUIOLe+cAE="; }; appimageContents = appimageTools.extract { @@ -43,4 +44,11 @@ in appimageTools.wrapType2 { maintainers = with maintainers; [ yuu ]; platforms = [ "x86_64-linux" ]; }; + + passthru.updateScript = gitUpdater { + url = "https://github.com/simplex-chat/simplex-chat"; + rev-prefix = "v"; + # skip tags that does not correspond to official releases, like vX.Y.Z-(beta,fdroid,armv7a). + ignoredVersions = "-"; + }; }