1 { lib, stdenv, fetchurl, dovecot, openssl }:
3 dovecotMajorMinor = lib.versions.majorMinor dovecot.version;
4 in stdenv.mkDerivation rec {
5 pname = "dovecot-pigeonhole";
9 url = "https://pigeonhole.dovecot.org/releases/${dovecotMajorMinor}/dovecot-${dovecotMajorMinor}-pigeonhole-${version}.tar.gz";
10 hash = "sha256-A3fbKEtiByPeBgQxEV+y53keHfQyFBGvcYIB1pJcRpI=";
13 buildInputs = [ dovecot openssl ];
16 substituteInPlace src/managesieve/managesieve-settings.c --replace \
17 ".executable = \"managesieve\"" \
18 ".executable = \"$out/libexec/dovecot/managesieve\""
19 substituteInPlace src/managesieve-login/managesieve-login-settings.c --replace \
20 ".executable = \"managesieve-login\"" \
21 ".executable = \"$out/libexec/dovecot/managesieve-login\""
25 "--with-dovecot=${dovecot}/lib/dovecot"
26 "--without-dovecot-install-dirs"
27 "--with-moduledir=$(out)/lib/dovecot"
30 enableParallelBuilding = true;
33 homepage = "https://pigeonhole.dovecot.org/";
34 description = "Sieve plugin for the Dovecot IMAP server";
35 license = licenses.lgpl21Only;
36 maintainers = with maintainers; [ globin ] ++ teams.helsinki-systems.members;
37 platforms = platforms.unix;