2013-07-15 15:15:35 +02:00
|
|
|
{stdenv, fetchurl, dovecot22, openssl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dovecot-pigeonhole-${version}";
|
2013-10-02 18:51:19 +02:00
|
|
|
version = "0.4.2";
|
2013-07-15 15:15:35 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.rename-it.nl/dovecot/2.2/dovecot-2.2-pigeonhole-${version}.tar.gz";
|
2013-10-02 18:51:19 +02:00
|
|
|
sha256 = "04rybb7ipsrhqapcqfr787n60lwd56gb33ylq7yqjr5q6xqg1684";
|
2013-07-15 15:15:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dovecot22 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=${dovecot22}/lib/dovecot"
|
|
|
|
"--without-dovecot-install-dirs"
|
|
|
|
"--with-moduledir=$(out)/lib/dovecot"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://pigeonhole.dovecot.org/;
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "A sieve plugin for the Dovecot IMAP server";
|
2013-07-15 15:15:35 +02:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.rickynils ];
|
|
|
|
};
|
|
|
|
}
|