|
7 | 7 | makeWrapper, |
8 | 8 | electron, |
9 | 9 | }: |
10 | | -(stdenvNoCC.mkDerivation { |
| 10 | +(stdenvNoCC.mkDerivation rec { |
11 | 11 | pname = "revolt-desktop"; |
12 | | - version = "1.0.6"; |
| 12 | + version = "1.0.8"; |
13 | 13 | dontConfigure = true; |
14 | 14 | dontBuild = true; |
15 | | - meta = with lib; { |
| 15 | + meta = { |
16 | 16 | description = "Open source user-first chat platform"; |
17 | 17 | homepage = "https://revolt.chat/"; |
18 | 18 | 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; [ |
21 | 21 | heyimnova |
22 | 22 | caralice |
23 | 23 | ]; |
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 ]; |
26 | 26 | mainProgram = "revolt-desktop"; |
27 | 27 | }; |
28 | 28 | nativeBuildInputs = [ makeWrapper ]; |
29 | 29 | }).overrideAttrs |
30 | 30 | ( |
31 | 31 | final: prev: |
32 | 32 | let |
33 | | - inherit (prev) pname version; |
| 33 | + inherit (prev) version; |
34 | 34 | in |
35 | 35 | if stdenvNoCC.hostPlatform.isLinux then |
36 | 36 | { |
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}"); |
41 | 54 |
|
42 | 55 | appimageContents = appimageTools.extractType2 { inherit (final) src pname version; }; |
43 | 56 |
|
|
53 | 66 | cp -a ${final.appimageContents}/usr/share/icons $out/share/icons |
54 | 67 |
|
55 | 68 | substituteInPlace $out/share/applications/revolt-desktop.desktop \ |
56 | | - --replace 'Exec=AppRun' 'Exec=revolt-desktop' |
| 69 | + --replace-fail 'Exec=AppRun' 'Exec=revolt-desktop' |
57 | 70 |
|
58 | 71 | runHook postInstall |
59 | 72 | ''; |
|
68 | 81 | assert stdenvNoCC.hostPlatform.isDarwin; |
69 | 82 | { |
70 | 83 | 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="; |
73 | 86 | stripRoot = false; |
74 | 87 | }; |
75 | 88 |
|
|
0 commit comments