Merge pull request #259636 from mjm/beeper-update-script

beeper: 3.71.16 -> 3.80.17

authored by Emily and committed by GitHub ea05d482 2d0f4622

+30 -6
+30 -6
pkgs/applications/networking/instant-messengers/beeper/default.nix
··· 1 - { lib, fetchurl, mkDerivation, appimageTools, libsecret, makeWrapper }: 1 + { lib 2 + , fetchurl 3 + , mkDerivation 4 + , appimageTools 5 + , libsecret 6 + , makeWrapper 7 + , writeShellApplication 8 + , curl 9 + , yq 10 + , common-updater-scripts 11 + }: 2 12 let 3 13 pname = "beeper"; 4 - version = "3.71.16"; 14 + version = "3.80.17"; 5 15 name = "${pname}-${version}"; 6 16 src = fetchurl { 7 - url = "https://download.todesktop.com/2003241lzgn20jd/beeper-${version}.AppImage"; 8 - hash = "sha256-Ho5zFmhNzkOmzo/btV+qZfP2GGx5XvV/1JncEKlH4vc="; 17 + url = "https://download.todesktop.com/2003241lzgn20jd/beeper-3.80.17-build-231010czwkkgnej.AppImage"; 18 + hash = "sha256-cfzfeM1czhZKz0HbbJw2PD3laJFg9JWppA2fKUb5szU="; 9 19 }; 10 20 appimage = appimageTools.wrapType2 { 11 21 inherit version pname src; ··· 16 26 }; 17 27 in 18 28 mkDerivation rec { 19 - inherit name pname; 29 + inherit name pname version; 20 30 21 31 src = appimage; 22 32 ··· 44 54 runHook postInstall 45 55 ''; 46 56 57 + passthru = { 58 + updateScript = lib.getExe (writeShellApplication { 59 + name = "update-beeper"; 60 + runtimeInputs = [ curl yq common-updater-scripts ]; 61 + text = '' 62 + set -o errexit 63 + latestLinux="$(curl -s https://download.todesktop.com/2003241lzgn20jd/latest-linux.yml)" 64 + version="$(echo "$latestLinux" | yq -r .version)" 65 + filename="$(echo "$latestLinux" | yq -r '.files[] | .url | select(. | endswith(".AppImage"))')" 66 + update-source-version beeper "$version" "" "https://download.todesktop.com/2003241lzgn20jd/$filename" --source-key=src.src 67 + ''; 68 + }); 69 + }; 70 + 47 71 meta = with lib; { 48 72 description = "Universal chat app."; 49 73 longDescription = '' ··· 53 77 ''; 54 78 homepage = "https://beeper.com"; 55 79 license = licenses.unfree; 56 - maintainers = with maintainers; [ jshcmpbll ]; 80 + maintainers = with maintainers; [ jshcmpbll mjm ]; 57 81 platforms = [ "x86_64-linux" ]; 58 82 }; 59 83 }