mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
snappymail: init at 2.17.0
This commit is contained in:
parent
67f49b2a38
commit
6b9494f949
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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user