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 }: 2 let 3 pname = "beeper"; 4 - version = "3.71.16"; 5 name = "${pname}-${version}"; 6 src = fetchurl { 7 - url = "https://download.todesktop.com/2003241lzgn20jd/beeper-${version}.AppImage"; 8 - hash = "sha256-Ho5zFmhNzkOmzo/btV+qZfP2GGx5XvV/1JncEKlH4vc="; 9 }; 10 appimage = appimageTools.wrapType2 { 11 inherit version pname src; ··· 16 }; 17 in 18 mkDerivation rec { 19 - inherit name pname; 20 21 src = appimage; 22 ··· 44 runHook postInstall 45 ''; 46 47 meta = with lib; { 48 description = "Universal chat app."; 49 longDescription = '' ··· 53 ''; 54 homepage = "https://beeper.com"; 55 license = licenses.unfree; 56 - maintainers = with maintainers; [ jshcmpbll ]; 57 platforms = [ "x86_64-linux" ]; 58 }; 59 }
··· 1 + { lib 2 + , fetchurl 3 + , mkDerivation 4 + , appimageTools 5 + , libsecret 6 + , makeWrapper 7 + , writeShellApplication 8 + , curl 9 + , yq 10 + , common-updater-scripts 11 + }: 12 let 13 pname = "beeper"; 14 + version = "3.80.17"; 15 name = "${pname}-${version}"; 16 src = fetchurl { 17 + url = "https://download.todesktop.com/2003241lzgn20jd/beeper-3.80.17-build-231010czwkkgnej.AppImage"; 18 + hash = "sha256-cfzfeM1czhZKz0HbbJw2PD3laJFg9JWppA2fKUb5szU="; 19 }; 20 appimage = appimageTools.wrapType2 { 21 inherit version pname src; ··· 26 }; 27 in 28 mkDerivation rec { 29 + inherit name pname version; 30 31 src = appimage; 32 ··· 54 runHook postInstall 55 ''; 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 + 71 meta = with lib; { 72 description = "Universal chat app."; 73 longDescription = '' ··· 77 ''; 78 homepage = "https://beeper.com"; 79 license = licenses.unfree; 80 + maintainers = with maintainers; [ jshcmpbll mjm ]; 81 platforms = [ "x86_64-linux" ]; 82 }; 83 }