evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / do / dovecot_pigeonhole / package.nix
blob5ed0d4be3ed16b7fcbd3daeba70cd7e928ecd7fa
1 { lib, stdenv, fetchurl, dovecot, openssl }:
2 let
3   dovecotMajorMinor = lib.versions.majorMinor dovecot.version;
4 in stdenv.mkDerivation rec {
5   pname = "dovecot-pigeonhole";
6   version = "0.5.21.1";
8   src = fetchurl {
9     url = "https://pigeonhole.dovecot.org/releases/${dovecotMajorMinor}/dovecot-${dovecotMajorMinor}-pigeonhole-${version}.tar.gz";
10     hash = "sha256-A3fbKEtiByPeBgQxEV+y53keHfQyFBGvcYIB1pJcRpI=";
11   };
13   buildInputs = [ dovecot openssl ];
15   preConfigure = ''
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\""
22   '';
24   configureFlags = [
25     "--with-dovecot=${dovecot}/lib/dovecot"
26     "--without-dovecot-install-dirs"
27     "--with-moduledir=$(out)/lib/dovecot"
28   ];
30   enableParallelBuilding = true;
32   meta = with lib; {
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;
38   };