nixpkgs/pkgs/by-name/el/electron-mail/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
Nix
Raw Normal View History

{
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
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
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
'';
extraPkgs = pkgs: [
pkgs.libsecret
pkgs.libappindicator-gtk3
2021-09-01 17:48:01 +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";
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" ];
changelog = "https://github.com/vladimiry/ElectronMail/releases/tag/v${version}";
2021-06-09 22:46:17 +00:00
};
}