snappymail: init at 2.17.0

This commit is contained in:
Jörg Thalheim 2022-07-15 21:33:33 +02:00
parent 67f49b2a38
commit 6b9494f949
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

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