Skip to content

Commit 92f5ad2

Browse files
authored
revolt-desktop: 1.0.6 -> 1.0.8 (#385291)
2 parents ac6ee55 + 97572ba commit 92f5ad2

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

pkgs/by-name/re/revolt-desktop/package.nix

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,50 @@
77
makeWrapper,
88
electron,
99
}:
10-
(stdenvNoCC.mkDerivation {
10+
(stdenvNoCC.mkDerivation rec {
1111
pname = "revolt-desktop";
12-
version = "1.0.6";
12+
version = "1.0.8";
1313
dontConfigure = true;
1414
dontBuild = true;
15-
meta = with lib; {
15+
meta = {
1616
description = "Open source user-first chat platform";
1717
homepage = "https://revolt.chat/";
1818
changelog = "https://github.com/revoltchat/desktop/releases/tag/v${version}";
19-
license = licenses.agpl3Only;
20-
maintainers = with maintainers; [
19+
license = lib.licenses.agpl3Only;
20+
maintainers = with lib.maintainers; [
2121
heyimnova
2222
caralice
2323
];
24-
platforms = platforms.linux ++ platforms.darwin;
25-
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
24+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
25+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
2626
mainProgram = "revolt-desktop";
2727
};
2828
nativeBuildInputs = [ makeWrapper ];
2929
}).overrideAttrs
3030
(
3131
final: prev:
3232
let
33-
inherit (prev) pname version;
33+
inherit (prev) version;
3434
in
3535
if stdenvNoCC.hostPlatform.isLinux then
3636
{
37-
src = fetchurl {
38-
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-linux.AppImage";
39-
hash = "sha256-Wsm6ef2Reenq3/aKGaP2yzlOuLKaxKtRHCLLMxvWUUY=";
40-
};
37+
src =
38+
{
39+
x86_64-linux = fetchurl {
40+
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-${version}.AppImage";
41+
hash = "sha256-L23Je5p7VmQpOLC+IfmQRk2CKKUm4rNBdsYLvqLTlRY=";
42+
};
43+
armv7l-linux = fetchurl {
44+
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-${version}-armv7l.AppImage";
45+
hash = "sha256-Qwya5tgHjMB8IJi0ueGmkzgQMQu+rlsDoWIVpl6Vj2w=";
46+
};
47+
aarch64-linux = fetchurl {
48+
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-${version}-arm64.AppImage";
49+
hash = "sha256-VQXyXaL4Ma3peO1duAlyFwkb1CRQ/4DNZhjiAnhms6I=";
50+
};
51+
}
52+
.${stdenvNoCC.hostPlatform.system}
53+
or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}");
4154

4255
appimageContents = appimageTools.extractType2 { inherit (final) src pname version; };
4356

@@ -53,7 +66,7 @@
5366
cp -a ${final.appimageContents}/usr/share/icons $out/share/icons
5467
5568
substituteInPlace $out/share/applications/revolt-desktop.desktop \
56-
--replace 'Exec=AppRun' 'Exec=revolt-desktop'
69+
--replace-fail 'Exec=AppRun' 'Exec=revolt-desktop'
5770
5871
runHook postInstall
5972
'';
@@ -68,8 +81,8 @@
6881
assert stdenvNoCC.hostPlatform.isDarwin;
6982
{
7083
src = fetchzip {
71-
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-${version}-mac.zip";
72-
hash = "sha256-XxmKcIfJtHfi6SahrRHMeTAuyVqiN9Yhayjis10vD2w=";
84+
url = "https://github.com/revoltchat/desktop/releases/download/v${version}/Revolt-${version}-universal-mac.zip";
85+
hash = "sha256-CpG1LLYYHa9ho4rotDwSS+wNIJ2z0kBPqu70xKEFg+k=";
7386
stripRoot = false;
7487
};
7588

0 commit comments

Comments
 (0)