diff options
author | Janne Heß <janne@hess.ooo> | 2018-06-28 21:54:44 +0200 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2018-08-07 19:01:39 +0200 |
commit | f3a095dbd2c4847484dc4c804e2210015b56b220 (patch) | |
tree | 8e38a6c0812c46859290900d8d5327ce1b23c908 /pkgs/servers/rainloop | |
parent | 25f4a12bc4d22b0684ef08c5ea3b94e181bde9c6 (diff) |
rainloop: Init at 1.12.1
Diffstat (limited to 'pkgs/servers/rainloop')
-rw-r--r-- | pkgs/servers/rainloop/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/servers/rainloop/default.nix b/pkgs/servers/rainloop/default.nix new file mode 100644 index 0000000000000..76f3ded780862 --- /dev/null +++ b/pkgs/servers/rainloop/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop" }: let + common = { edition, sha256 }: + stdenv.mkDerivation (rec { + name = "rainloop-${edition}-${version}"; + version = "1.12.1"; + + buildInputs = [ unzip ]; + + unpackPhase = '' + mkdir rainloop + unzip -q -d rainloop $src + ''; + + src = fetchurl { + url = "https://github.com/RainLoop/rainloop-webmail/releases/download/v${version}/rainloop-${edition}${stdenv.lib.optionalString (edition != "") "-"}${version}.zip"; + sha256 = sha256; + }; + + installPhase = '' + mkdir $out + cp -r rainloop/* $out + rm -rf $out/data + ln -s ${dataPath} $out/data + ''; + + meta = with stdenv.lib; { + description = "Simple, modern & fast web-based email client"; + homepage = "https://www.rainloop.net"; + downloadPage = https://github.com/RainLoop/rainloop-webmail/releases; + license = licenses.agpl3; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; + }); + in { + rainloop-community = common { + edition = "community"; + sha256 = "06w1vxqpcj2j8dzzjqh6azala8l46hzy85wcvqbjdlj5w789jzsx"; + }; + rainloop-standard = common { + edition = ""; + sha256 = "1fbnpk7l2fbmzn31vx36caqg9xm40g4hh4mv3s8d70slxwhlscw0"; + }; + } |