8 dataPath ? "/var/lib/rainloop",
13 stdenv.mkDerivation (rec {
14 pname = "rainloop${lib.optionalString (edition != "") "-${edition}"}";
24 unzip -q -d rainloop $src
28 url = "https://github.com/RainLoop/rainloop-webmail/releases/download/v${version}/rainloop-${edition}${
29 lib.optionalString (edition != "") "-"
35 dos2unix ./rainloop/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php
39 ./fix-cve-2022-29360.patch
43 unix2dos ./rainloop/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php
46 includeScript = writeText "include.php" ''
52 function __get_custom_data_full_path()
54 $v = getenv('RAINLOOP_DATA_DIR', TRUE);
55 return $v === FALSE ? '${dataPath}' : $v;
63 cp ${includeScript} $out/include.php
69 description = "Simple, modern & fast web-based email client";
70 homepage = "https://www.rainloop.net";
71 downloadPage = "https://github.com/RainLoop/rainloop-webmail/releases";
72 license = with licenses; if edition == "" then unfree else agpl3Only;
73 platforms = platforms.all;
74 maintainers = with maintainers; [ das_j ];
79 rainloop-community = common {
80 edition = "community";
81 sha256 = "sha256-25ScQ2OwSKAuqg8GomqDhpebhzQZjCk57h6MxUNiymc=";
83 rainloop-standard = common {
85 sha256 = "sha256-aYCwqFqhJEeakn4R0MUDGcSp+M47JbbCrbYaML8aeSs=";