2024-04-26 01:47:53 +00:00
|
|
|
{
|
|
|
|
appimageTools,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
2021-06-09 22:46:17 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "electron-mail";
|
2024-09-06 00:35:44 +00:00
|
|
|
version = "5.2.3";
|
2021-06-09 22:46:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage";
|
2024-09-06 00:35:44 +00:00
|
|
|
sha256 = "sha256-ajekPPRgprYNWE2osAXe46qVjnxXzkXa+MkWiNYJ5Fc=";
|
2021-06-09 22:46:17 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 14:31:47 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
2024-04-26 01:47:53 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2024-04-21 14:31:47 +00:00
|
|
|
inherit pname version src;
|
2021-06-09 22:46:17 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
2024-05-01 12:42:20 +00:00
|
|
|
extraPkgs = pkgs: [
|
|
|
|
pkgs.libsecret
|
|
|
|
pkgs.libappindicator-gtk3
|
2021-09-01 17:48:01 +00:00
|
|
|
];
|
|
|
|
|
2024-04-26 01:47:53 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2021-06-09 22:46:17 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ElectronMail is an Electron-based unofficial desktop client for ProtonMail";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "electron-mail";
|
2021-06-09 22:46:17 +00:00
|
|
|
homepage = "https://github.com/vladimiry/ElectronMail";
|
2022-07-14 21:02:58 +00:00
|
|
|
license = licenses.gpl3;
|
2021-06-09 22:46:17 +00:00
|
|
|
maintainers = [ maintainers.princemachiavelli ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-04-26 01:47:53 +00:00
|
|
|
changelog = "https://github.com/vladimiry/ElectronMail/releases/tag/v${version}";
|
2021-06-09 22:46:17 +00:00
|
|
|
};
|
|
|
|
}
|