2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, appimageTools
|
|
|
|
, fetchurl
|
2024-02-07 01:22:34 +00:00
|
|
|
, gitUpdater
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "simplex-chat-desktop";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "6.0.4";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/simplex-chat/simplex-chat/releases/download/v${version}/simplex-desktop-x86_64.AppImage";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-yDymJ44NIqDg5++WV5rcbOAR4gEWZpwNDClJkFMe9Ns=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
in appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraBwrapArgs = [
|
|
|
|
"--setenv _JAVA_AWT_WM_NONREPARENTING 1"
|
|
|
|
];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install --mode=444 -D ${appimageContents}/chat.simplex.app.desktop --target-directory=$out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/chat.simplex.app.desktop \
|
2024-06-20 14:57:18 +00:00
|
|
|
--replace-fail 'Exec=simplex' 'Exec=simplex-chat-desktop'
|
2023-10-09 19:29:22 +00:00
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
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 = "-";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Desktop application for SimpleX Chat";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "simplex-chat-desktop";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://simplex.chat";
|
|
|
|
changelog = "https://github.com/simplex-chat/simplex-chat/releases/tag/v${version}";
|
|
|
|
license = licenses.agpl3Only;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ terryg yuu ];
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|