electron-mail: init at 4.12.2

This commit is contained in:
Josh Hoffer 2021-06-09 16:46:17 -06:00
parent 1fdddce7f2
commit 11ee0cb222
No known key found for this signature in database
GPG key ID: 2C5197F55A0F1DE0
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ appimageTools, lib, fetchurl }:
let
pname = "electron-mail";
version = "4.12.2";
name = "ElectronMail-${version}";
src = fetchurl {
url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage";
sha256 = "D+0qoIb0EwUVbgKOiKQpqoLDgm8l/UKDWm/BjhW4MYU=";
};
appimageContents = appimageTools.extract { inherit name src; };
in appimageTools.wrapType2 {
inherit name src;
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
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
'';
meta = with lib; {
description = "ElectronMail is an Electron-based unofficial desktop client for ProtonMail";
homepage = "https://github.com/vladimiry/ElectronMail";
license = licenses.mit;
maintainers = [ maintainers.princemachiavelli ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -2550,6 +2550,8 @@ in
electronplayer = callPackage ../applications/video/electronplayer/electronplayer.nix { };
electron-mail = callPackage ../applications/networking/mailreaders/electron-mail { };
element-desktop = callPackage ../applications/networking/instant-messengers/element/element-desktop.nix { };
element-web = callPackage ../applications/networking/instant-messengers/element/element-web.nix {