diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bbe4964e2b65..da66dd850817 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -22528,6 +22528,12 @@ githubId = 17805516; name = "Rohan Rao"; }; + rohi-devs = { + email = "rohi.devs@gmail.com"; + github = "rohi-devs"; + githubId = 129837916; + name = "Rohith S"; + }; rolfschr = { email = "rolf.schr@posteo.de"; github = "rolfschr"; diff --git a/pkgs/by-name/zo/zoho-mail-desktop/package.nix b/pkgs/by-name/zo/zoho-mail-desktop/package.nix new file mode 100644 index 000000000000..71f88170b041 --- /dev/null +++ b/pkgs/by-name/zo/zoho-mail-desktop/package.nix @@ -0,0 +1,44 @@ +{ + lib, + appimageTools, + fetchurl, +}: + +let + pname = "zoho-mail-desktop"; + version = "1.7.1"; + + src = fetchurl { + url = "https://downloads.zohocdn.com/zmail-desktop/linux/zoho-mail-desktop-lite-x64-v${version}.AppImage"; + hash = "sha256-KLDJl91vfTdDtUQ5maDuCBU1HJQf4V0VEnplAc4ytZM="; + }; + + appimageContents = appimageTools.extract { + inherit pname version src; + }; + +in +appimageTools.wrapType2 { + inherit pname version src; + + extraInstallCommands = '' + install -Dm444 ${appimageContents}/zoho-mail-desktop.desktop \ + $out/share/applications/zoho-mail-desktop.desktop + + install -Dm444 ${appimageContents}/usr/share/icons/hicolor/1024x1024/apps/zoho-mail-desktop.png \ + $out/share/icons/hicolor/1024x1024/apps/zoho-mail-desktop.png + + substituteInPlace $out/share/applications/zoho-mail-desktop.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=${pname}' + ''; + + meta = { + description = "Desktop client for Zoho Mail"; + homepage = "https://www.zoho.com/mail/desktop/"; + license = lib.licenses.unfree; + platforms = [ "x86_64-linux" ]; + maintainers = with lib.maintainers; [ rohi-devs ]; + mainProgram = "zoho-mail-desktop"; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +}