Merge pull request #184167 from Mic92/snappymail
snappymail: init at 2.17.0
This commit is contained in:
commit
6d28f8d702
2 changed files with 39 additions and 0 deletions
37
pkgs/servers/snappymail/default.nix
Normal file
37
pkgs/servers/snappymail/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue