pull nixos-mailserver module into this repo
This commit is contained in:
parent
0b19cc8c6a
commit
284dd09a91
23 changed files with 1077 additions and 188 deletions
35
nixos-mailserver/pkg-postfixadmin.nix
Normal file
35
nixos-mailserver/pkg-postfixadmin.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, lib, fetchFromGitHub, config ? null, cacheDir ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "postfixadmin-${version}";
|
||||
version = "3.3.10";
|
||||
rev = "${name}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "postfixadmin";
|
||||
repo = "postfixadmin";
|
||||
sha256 = "0xck6df96r4z8k2j8x20b8h2qvmzyrfsya82s4i7hfhrxii92d3w";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
cp -Rp ./ $out/
|
||||
${lib.optionalString (config != null) ''
|
||||
ln -s ${config} $out/config.local.php
|
||||
''}
|
||||
${lib.optionalString (cacheDir != null) ''
|
||||
ln -s ${cacheDir}/templates_c $out/templates_c
|
||||
''}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Postfix Admin";
|
||||
homepage = http://postfixadmin.sourceforge.net/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ tokudan ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue