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
20
nixos-mailserver/sieve-after.nix
Normal file
20
nixos-mailserver/sieve-after.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ stdenv, dovecot_pigeonhole}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sieve-after";
|
||||
|
||||
src = ./sieve-after;
|
||||
|
||||
phases = [ "copyPhase" "compilePhase" ];
|
||||
|
||||
copyPhase = ''
|
||||
cd $src
|
||||
mkdir $out
|
||||
cp -Rv $src/. $out/
|
||||
find $out -type d -exec chmod -c 0755 {} \;
|
||||
set +x
|
||||
'';
|
||||
compilePhase = ''
|
||||
find $out -iname '*.sieve' -print0 | xargs -t -0 -n1 ${dovecot_pigeonhole}/bin/sievec -c /dev/null
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue