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 {
name = "dovecot-pigeonhole-${version}";
2019-07-25 05:33:59 -07:00
version = "0.5.7.1";
src = fetchurl {
url = "https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-${version}.tar.gz";
2019-07-25 05:33:59 -07:00
sha256 = "0a10mam68pmdh3fw8fnv5jff6xj1k770hvadym2c39vm3x6b4w1j";
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; {
homepage = http://pigeonhole.dovecot.org/;
description = "A sieve plugin for the Dovecot IMAP server";
license = licenses.lgpl21;
maintainers = [ maintainers.rickynils ];
platforms = platforms.unix;
2016-01-02 18:55:19 -08:00
};
}