1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/servers/rainloop/default.nix
R. RyanTM df493fe596 rainloop-community: 1.12.1 -> 1.13.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/rainloop-community/versions
2019-08-20 15:10:19 -07:00

45 lines
1.3 KiB
Nix

{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop" }: let
common = { edition, sha256 }:
stdenv.mkDerivation (rec {
name = "rainloop-${edition}-${version}";
version = "1.13.0";
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 = "1skwq6bn98142xf8r77b818fy00nb4x0s1ii3mw5849ih94spx40";
};
rainloop-standard = common {
edition = "";
sha256 = "1fbnpk7l2fbmzn31vx36caqg9xm40g4hh4mv3s8d70slxwhlscw0";
};
}