1{
2 lib,
3 stdenv,
4 callPackage,
5}:
6let
7 pname = "mailspring";
8 version = "1.15.1";
9
10 meta = {
11 description = "Beautiful, fast and maintained fork of Nylas Mail by one of the original authors";
12 downloadPage = "https://github.com/Foundry376/Mailspring";
13 homepage = "https://getmailspring.com";
14 license = lib.licenses.gpl3Plus;
15 longDescription = ''
16 Mailspring is an open-source mail client forked from Nylas Mail and built with Electron.
17 Mailspring's sync engine runs locally, but its source is not open.
18 '';
19 mainProgram = "mailspring";
20 maintainers = with lib.maintainers; [ toschmidt ];
21 platforms = [
22 "x86_64-linux"
23 "aarch64-darwin"
24 ];
25 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
26 };
27
28 linux = callPackage ./linux.nix { inherit pname version meta; };
29 darwin = callPackage ./darwin.nix { inherit pname version meta; };
30in
31if stdenv.hostPlatform.isDarwin then darwin else linux