2016-01-02 18:55:19 -08:00
|
|
|
{ stdenv, fetchurl, dovecot, openssl }:
|
2013-07-15 06:15:35 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "dovecot-pigeonhole";
|
2020-08-13 00:56:43 -07:00
|
|
|
version = "0.5.11";
|
2013-07-15 06:15:35 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-${version}.tar.gz";
|
2020-08-13 00:56:43 -07:00
|
|
|
sha256 = "1w5mryv6izh1gv7davnl94rb0pvh5bxl2bydzbfla1b83x22m5qb";
|
2016-01-02 18:55:19 -08:00
|
|
|
};
|
2013-07-15 06:15:35 -07:00
|
|
|
|
2016-01-02 18:55:19 -08:00
|
|
|
buildInputs = [ dovecot openssl ];
|
2013-07-15 06:15:35 -07:00
|
|
|
|
|
|
|
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\""
|
2016-01-02 18:55:19 -08:00
|
|
|
'';
|
2013-07-15 06:15:35 -07:00
|
|
|
|
2016-01-02 18:55:19 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--with-dovecot=${dovecot}/lib/dovecot"
|
2013-07-15 06:15:35 -07:00
|
|
|
"--without-dovecot-install-dirs"
|
|
|
|
"--with-moduledir=$(out)/lib/dovecot"
|
2016-01-02 18:55:19 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2013-07-15 06:15:35 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-12 20:37:40 -07:00
|
|
|
homepage = "http://pigeonhole.dovecot.org/";
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "A sieve plugin for the Dovecot IMAP server";
|
2013-07-15 06:15:35 -07:00
|
|
|
license = licenses.lgpl21;
|
2020-09-24 12:12:32 -07:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2018-03-30 15:30:39 -07:00
|
|
|
platforms = platforms.unix;
|
2016-01-02 18:55:19 -08:00
|
|
|
};
|
2013-07-15 06:15:35 -07:00
|
|
|
}
|