2021-08-23 20:13:04 +01:00
|
|
|
{ fetchFromGitHub, stdenv, lib }:
|
2021-05-19 05:34:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "postfixadmin";
|
2022-03-04 15:33:33 +00:00
|
|
|
version = "3.3.11";
|
2021-05-19 05:34:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2022-03-04 15:33:33 +00:00
|
|
|
sha256 = "sha256-jOO0AVcCmBxHLaWQOwvt7OFKAcAYPTVHTdQz1ZaYIqE=";
|
2021-05-19 05:34:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r * $out/
|
|
|
|
ln -sf /etc/postfixadmin/config.local.php $out/
|
|
|
|
ln -sf /var/cache/postfixadmin/templates_c $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web based virtual user administration interface for Postfix mail servers";
|
2021-05-19 21:33:23 +01:00
|
|
|
homepage = "https://postfixadmin.sourceforge.io/";
|
2021-08-23 20:13:04 +01:00
|
|
|
maintainers = with lib.maintainers; [ globin ];
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
2021-05-19 05:34:03 +01:00
|
|
|
};
|
|
|
|
}
|