a77524e2e3
Fixes build with dovecot 2.3.9+.
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, dovecot, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dovecot-pigeonhole";
|
|
version = "0.5.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-${version}.tar.gz";
|
|
sha256 = "01dxidrnmrr2gqggfsgkfxa6ynvyjyw13xw32gi86yqmwnm6inin";
|
|
};
|
|
|
|
buildInputs = [ dovecot openssl ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace src/managesieve/managesieve-settings.c --replace \
|
|
".executable = \"managesieve\"" \
|
|
".executable = \"$out/libexec/dovecot/managesieve\""
|
|
substituteInPlace src/managesieve-login/managesieve-login-settings.c --replace \
|
|
".executable = \"managesieve-login\"" \
|
|
".executable = \"$out/libexec/dovecot/managesieve-login\""
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-dovecot=${dovecot}/lib/dovecot"
|
|
"--without-dovecot-install-dirs"
|
|
"--with-moduledir=$(out)/lib/dovecot"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://pigeonhole.dovecot.org/;
|
|
description = "A sieve plugin for the Dovecot IMAP server";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ rickynils globin ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|