nixpkgs-suyu/pkgs/servers/postfixadmin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
736 B
Nix
Raw Normal View History

2021-08-23 21:13:04 +02:00
{ fetchFromGitHub, stdenv, lib }:
2021-05-19 06:34:03 +02:00
stdenv.mkDerivation rec {
pname = "postfixadmin";
2022-12-10 20:56:44 +01:00
version = "3.3.13";
2021-05-19 06:34:03 +02:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "${pname}-${version}";
2022-12-10 20:56:44 +01:00
sha256 = "sha256-46bc34goAcRvaiyW7z0AvIcd8n61TL6vgLQ+y7nNKBQ=";
2021-05-19 06:34:03 +02: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";
homepage = "https://postfixadmin.sourceforge.io/";
2021-08-23 21:13:04 +02:00
maintainers = with lib.maintainers; [ globin ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
2021-05-19 06:34:03 +02:00
};
}