2013-07-15 14:15:35 +01:00
|
|
|
{stdenv, fetchurl, dovecot22, openssl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dovecot-pigeonhole-${version}";
|
2014-05-26 15:23:20 +01:00
|
|
|
version = "0.4.3";
|
2013-07-15 14:15:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-05-27 11:53:51 +01:00
|
|
|
url = "http://pigeonhole.dovecot.org/releases/2.2/dovecot-2.2-pigeonhole-${version}.tar.gz";
|
2014-05-26 15:23:20 +01:00
|
|
|
sha256 = "0mypnkc980s3kd1bmy4f93dliwg6n8jfsac8r51jrpvv0ymz94nn";
|
2013-07-15 14:15:35 +01: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 10:49:53 +01:00
|
|
|
description = "A sieve plugin for the Dovecot IMAP server";
|
2013-07-15 14:15:35 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.rickynils ];
|
|
|
|
};
|
|
|
|
}
|