nixpkgs/pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2016-01-02 18:55:19 -08:00
{ stdenv, fetchurl, dovecot, openssl }:
stdenv.mkDerivation rec {
pname = "dovecot-pigeonhole";
2020-08-13 00:56:43 -07:00
version = "0.5.11";
src = fetchurl {
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
};
2016-01-02 18:55:19 -08:00
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\""
2016-01-02 18:55:19 -08:00
'';
2016-01-02 18:55:19 -08:00
configureFlags = [
"--with-dovecot=${dovecot}/lib/dovecot"
"--without-dovecot-install-dirs"
"--with-moduledir=$(out)/lib/dovecot"
2016-01-02 18:55:19 -08:00
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
2020-03-12 20:37:40 -07:00
homepage = "http://pigeonhole.dovecot.org/";
description = "A sieve plugin for the Dovecot IMAP server";
license = licenses.lgpl21;
2020-09-24 12:12:32 -07:00
maintainers = with maintainers; [ globin ];
platforms = platforms.unix;
2016-01-02 18:55:19 -08:00
};
}