1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00

Merge pull request #42740 from dasJ/rainloop

rainloop: Init at 1.12.1
This commit is contained in:
Jörg Thalheim 2018-08-17 16:05:21 +01:00 committed by GitHub
commit 0d941593d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -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";
};
}

View file

@ -1488,6 +1488,10 @@ with pkgs;
syslogng_incubator = callPackage ../tools/system/syslog-ng-incubator { };
inherit (callPackages ../servers/rainloop { })
rainloop-community
rainloop-standard;
ring-daemon = callPackage ../applications/networking/instant-messengers/ring-daemon { };
riot-web = callPackage ../applications/networking/instant-messengers/riot/riot-web.nix {