File tree Expand file tree Collapse file tree 7 files changed +98
-47
lines changed
Expand file tree Collapse file tree 7 files changed +98
-47
lines changed Original file line number Diff line number Diff line change 11{
22 callPackage ,
33 fetchpatch ,
4+ dovecot_pigeonhole_2_3 ,
45} :
56callPackage ./generic.nix { } {
67 version = "2.3.21.1" ;
@@ -19,4 +20,6 @@ callPackage ./generic.nix { } {
1920 hash = "sha256-dAX80dRqOba9Fkzl11ChYJ6vqcgfkaw/o+TOQKCnnns=" ;
2021 } )
2122 ] ;
23+
24+ dovecot_pigeonhole = dovecot_pigeonhole_2_3 ;
2225}
Original file line number Diff line number Diff line change 2424 libsodium ,
2525 libstemmer ,
2626 cyrus_sasl ,
27+ pcre2 ,
2728 nixosTests ,
2829 rpcsvc-proto ,
2930 libtirpc ,
4546 version ,
4647 hash ,
4748 patches ? [ ] ,
49+ # Re-exported plugins for this version
50+ dovecot_pigeonhole ,
4851} :
4952stdenv . mkDerivation {
5053 pname = "dovecot" ;
@@ -73,6 +76,7 @@ stdenv.mkDerivation {
7376 libstemmer
7477 cyrus_sasl . dev
7578 ]
79+ ++ lib . optional ( lib . strings . versionAtLeast version "2.4" ) pcre2
7680 ++ lib . optionals stdenv . hostPlatform . isLinux [
7781 systemd
7882 pam
@@ -94,6 +98,12 @@ stdenv.mkDerivation {
9498
9599 enableParallelBuilding = true ;
96100
101+ postConfigure = lib . optionalString ( lib . strings . versionAtLeast version "2.4" ) ''
102+ substituteInPlace src/lib-regex/Makefile --replace-fail \
103+ "test_regex_DEPENDENCIES = libdregex.la \$(LIBPCRE_LIBS)" \
104+ "test_regex_DEPENDENCIES = libdregex.la"
105+ '' ;
106+
97107 postPatch = ''
98108 sed -i -E \
99109 -e 's!/bin/sh\b!${ stdenv . shell } !g' \
@@ -205,5 +215,7 @@ stdenv.mkDerivation {
205215 opensmtpd-interaction = nixosTests . opensmtpd ;
206216 inherit ( nixosTests ) dovecot ;
207217 } ;
218+
219+ pigeonhole = dovecot_pigeonhole ;
208220 } ;
209221}
Original file line number Diff line number Diff line change 1- { callPackage } :
1+ {
2+ callPackage ,
3+ dovecot_pigeonhole ,
4+ } :
25callPackage ./generic.nix { } {
3- version = "2.4.0 " ;
4- hash = "sha256-6Q5J+MMbCaUIJJpP7oYF+qZf4yCBm/ytryUkEmJT1a4 =" ;
6+ version = "2.4.2 " ;
7+ hash = "sha256-LNYuTSK5/ByAvThklzmVDw29o0+8PmJiT7aEImTpPG4 =" ;
58 patches = [
69 # Fix loading extended modules.
710 ./load-extended-modules.patch
811 ] ;
12+
13+ inherit dovecot_pigeonhole ;
914}
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ callPackage ,
4+ dovecot_2_3 ,
5+ } :
6+ callPackage ./generic.nix { } rec {
7+ url = "https://pigeonhole.dovecot.org/releases/${ lib . versions . majorMinor dovecot . version } /dovecot-${ lib . versions . majorMinor dovecot . version } -pigeonhole-${ version } .tar.gz" ;
8+ version = "0.5.21.1" ;
9+ hash = "sha256-A3fbKEtiByPeBgQxEV+y53keHfQyFBGvcYIB1pJcRpI=" ;
10+
11+ dovecot = dovecot_2_3 ;
12+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchurl ,
5+ openssl ,
6+ openldap ,
7+ } :
8+ {
9+ url ,
10+ version ,
11+ hash ,
12+ dovecot ,
13+ } :
14+ stdenv . mkDerivation rec {
15+ pname = "dovecot-pigeonhole" ;
16+ inherit version ;
17+
18+ src = fetchurl {
19+ inherit url hash ;
20+ } ;
21+
22+ buildInputs = [
23+ dovecot
24+ openssl
25+ ]
26+ ++ lib . optionals ( lib . versionAtLeast version "2.4" ) [
27+ openldap
28+ ] ;
29+
30+ preConfigure = ''
31+ substituteInPlace src/managesieve/managesieve-settings.c --replace-fail \
32+ ".executable = \"managesieve\"" \
33+ ".executable = \"$out/libexec/dovecot/managesieve\""
34+ substituteInPlace src/managesieve-login/managesieve-login-settings.c --replace-fail \
35+ ".executable = \"managesieve-login\"" \
36+ ".executable = \"$out/libexec/dovecot/managesieve-login\""
37+ '' ;
38+
39+ configureFlags = [
40+ "--with-dovecot=${ dovecot } /lib/dovecot"
41+ "--with-moduledir=${ placeholder "out" } /lib/dovecot/modules"
42+ "--without-dovecot-install-dirs"
43+ ] ;
44+
45+ enableParallelBuilding = true ;
46+
47+ meta = with lib ; {
48+ homepage = "https://pigeonhole.dovecot.org/" ;
49+ description = "Sieve plugin for the Dovecot IMAP server" ;
50+ license = licenses . lgpl21Only ;
51+ maintainers = with maintainers ; [ globin ] ++ teams . helsinki-systems . members ;
52+ platforms = platforms . unix ;
53+ } ;
54+ }
Original file line number Diff line number Diff line change 11{
22 lib ,
3- stdenv ,
4- fetchurl ,
3+ callPackage ,
54 dovecot ,
6- openssl ,
75} :
8- let
9- dovecotMajorMinor = lib . versions . majorMinor dovecot . version ;
10- in
11- stdenv . mkDerivation rec {
12- pname = "dovecot-pigeonhole" ;
13- version = "0.5.21.1" ;
6+ callPackage ./generic.nix { } rec {
7+ url = "https://pigeonhole.dovecot.org/releases/${ lib . versions . majorMinor dovecot . version } /dovecot-pigeonhole-${ version } .tar.gz" ;
8+ version = "2.4.0" ;
9+ hash = "sha256-DtCK4WOsOalEcgD7tC17OwXTXpHZmBjdD0r9etHbx1M=" ;
1410
15- src = fetchurl {
16- url = "https://pigeonhole.dovecot.org/releases/${ dovecotMajorMinor } /dovecot-${ dovecotMajorMinor } -pigeonhole-${ version } .tar.gz" ;
17- hash = "sha256-A3fbKEtiByPeBgQxEV+y53keHfQyFBGvcYIB1pJcRpI=" ;
18- } ;
19-
20- buildInputs = [
21- dovecot
22- openssl
23- ] ;
24-
25- preConfigure = ''
26- substituteInPlace src/managesieve/managesieve-settings.c --replace \
27- ".executable = \"managesieve\"" \
28- ".executable = \"$out/libexec/dovecot/managesieve\""
29- substituteInPlace src/managesieve-login/managesieve-login-settings.c --replace \
30- ".executable = \"managesieve-login\"" \
31- ".executable = \"$out/libexec/dovecot/managesieve-login\""
32- '' ;
33-
34- configureFlags = [
35- "--with-dovecot=${ dovecot } /lib/dovecot"
36- "--with-moduledir=${ placeholder "out" } /lib/dovecot/modules"
37- "--without-dovecot-install-dirs"
38- ] ;
39-
40- enableParallelBuilding = true ;
41-
42- meta = with lib ; {
43- homepage = "https://pigeonhole.dovecot.org/" ;
44- description = "Sieve plugin for the Dovecot IMAP server" ;
45- license = licenses . lgpl21Only ;
46- maintainers = with maintainers ; [ globin ] ;
47- teams = [ teams . helsinki-systems ] ;
48- platforms = platforms . unix ;
49- } ;
11+ inherit dovecot ;
5012}
Original file line number Diff line number Diff line change @@ -9141,6 +9141,9 @@ with pkgs;
91419141 dovecot_2_3 = callPackage ../by-name/do/dovecot/2_3.nix { } ;
91429142 dovecot_2_4 = callPackage ../by-name/do/dovecot/package.nix { } ;
91439143
9144+ dovecot_pigeonhole_2_3 = callPackage ../by-name/do/dovecot_pigeonhole/2_3.nix { } ;
9145+ dovecot_pigeonhole_2_4 = callPackage ../by-name/do/dovecot_pigeonhole/package.nix { } ;
9146+
91449147 prosody = callPackage ../servers/xmpp/prosody {
91459148 withExtraLibs = [ ] ;
91469149 withExtraLuaPackages = _ : [ ] ;
You can’t perform that action at this time.
0 commit comments