Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, stdenv, fetchurl, unzip, writeText, dos2unix, dataPath ? "/var/lib/rainloop",}:let common = { edition, sha256 }: stdenv.mkDerivation (rec { pname = "rainloop${lib.optionalString (edition != "") "-${edition}"}"; version = "1.16.0";
nativeBuildInputs = [ unzip dos2unix ];
unpackPhase = '' mkdir rainloop unzip -q -d rainloop $src '';
src = fetchurl { url = "https://github.com/RainLoop/rainloop-webmail/releases/download/v${version}/rainloop-${edition}${ lib.optionalString (edition != "") "-" }${version}.zip"; sha256 = sha256; };
prePatch = '' dos2unix ./rainloop/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php '';
patches = [ ./fix-cve-2022-29360.patch ];
postPatch = '' unix2dos ./rainloop/rainloop/v/1.16.0/app/libraries/MailSo/Base/HtmlUtils.php '';
includeScript = writeText "include.php" '' <?php
/** * @return string */ function __get_custom_data_full_path() { $v = getenv('RAINLOOP_DATA_DIR', TRUE); return $v === FALSE ? '${dataPath}' : $v; } '';
installPhase = '' mkdir $out cp -r rainloop/* $out rm -rf $out/data cp ${includeScript} $out/include.php mkdir $out/data chmod 700 $out/data '';
meta = with lib; { description = "Simple, modern & fast web-based email client"; homepage = "https://www.rainloop.net"; downloadPage = "https://github.com/RainLoop/rainloop-webmail/releases"; license = with licenses; if edition == "" then unfree else agpl3Only; platforms = platforms.all; maintainers = with maintainers; [ das_j ]; }; });in{ rainloop-community = common { edition = "community"; sha256 = "sha256-25ScQ2OwSKAuqg8GomqDhpebhzQZjCk57h6MxUNiymc="; }; rainloop-standard = common { edition = ""; sha256 = "sha256-aYCwqFqhJEeakn4R0MUDGcSp+M47JbbCrbYaML8aeSs="; };}