Merge pull request #184167 from Mic92/snappymail

snappymail: init at 2.17.0
This commit is contained in:
Jörg Thalheim 2022-08-16 05:25:37 +01:00 committed by GitHub
commit 6d28f8d702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, stdenv, fetchurl, writeText
, dataPath ? "/var/lib/snappymail" }:
stdenv.mkDerivation rec {
pname = "snappymail";
version = "2.17.0";
src = fetchurl {
url = "https://github.com/the-djmaze/snappymail/releases/download/v${version}/snappymail-${version}.tar.gz";
sha256 = "sha256-Z8By/X4IheOyCT7F4KArBN+CFUTcSn0VZchcYhAJsCU=";
};
sourceRoot = "snappymail";
includeScript = writeText "include.php" ''
<?php
# the trailing `/` is important here
define('APP_DATA_FOLDER_PATH', '${dataPath}/');
'';
installPhase = ''
mkdir $out
cp -r ../* $out
rm -rf $out/{data,env-vars,_include.php}
cp ${includeScript} $out/include.php
'';
meta = with lib; {
description = "Simple, modern & fast web-based email client";
homepage = "https://snappymail.eu";
downloadPage = "https://github.com/the-djmaze/snappymail/releases";
license = licenses.agpl3;
platforms = platforms.all;
maintainers = with maintainers; [ mic92 ];
};
}

View file

@ -21262,6 +21262,8 @@ with pkgs;
snappy = callPackage ../development/libraries/snappy { };
snappymail = callPackage ../servers/snappymail { };
snow = callPackage ../tools/security/snow { };
snowcrash = callPackage ../tools/security/snowcrash { };