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";
|
2019-12-17 14:27:58 -08:00
|
|
|
version = "0.5.9";
|
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";
|
2019-12-17 14:27:58 -08:00
|
|
|
sha256 = "01dxidrnmrr2gqggfsgkfxa6ynvyjyw13xw32gi86yqmwnm6inin";
|
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; {
|
|
|
|
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;
|
2019-08-20 10:36:05 -07:00
|
|
|
maintainers = with maintainers; [ rickynils 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
|
|
|
}
|