about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2022-10-03 10:25:21 +0200
committerGitHub <noreply@github.com>2022-10-03 10:25:21 +0200
commitecf0f7686607418b256db6e63c9ce59a432c86c8 (patch)
tree6210d05a2dfd294642a49e29f59544e37f700bfe
parentfd54651f5ffb4a36e8463e0c327a78442b26cbe7 (diff)
parentd81b7507f0b40f3137f3b611b963ea5ddb4b14a3 (diff)
downloadnixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar.gz
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar.bz2
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar.lz
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar.xz
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.tar.zst
nixlib-ecf0f7686607418b256db6e63c9ce59a432c86c8.zip
Merge pull request #193925 from drupol/php/enable-imap-ext
php: enable `imap` extension by default
-rw-r--r--pkgs/development/interpreters/php/8.0.nix3
-rw-r--r--pkgs/development/interpreters/php/8.1.nix3
-rw-r--r--pkgs/top-level/php-packages.nix7
3 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/php/8.0.nix b/pkgs/development/interpreters/php/8.0.nix
index c58c79415d40..97ef232135ec 100644
--- a/pkgs/development/interpreters/php/8.0.nix
+++ b/pkgs/development/interpreters/php/8.0.nix
@@ -21,6 +21,7 @@ base.withExtensions ({ all, ... }: with all; ([
   gettext
   gmp
   iconv
+  imap
   intl
   ldap
   mbstring
@@ -49,4 +50,4 @@ base.withExtensions ({ all, ... }: with all; ([
   xmlwriter
   zip
   zlib
-] ++ lib.optionals (!stdenv.isDarwin) [ imap ]))
+]))
diff --git a/pkgs/development/interpreters/php/8.1.nix b/pkgs/development/interpreters/php/8.1.nix
index aa190bc3866c..7e73787256d2 100644
--- a/pkgs/development/interpreters/php/8.1.nix
+++ b/pkgs/development/interpreters/php/8.1.nix
@@ -21,6 +21,7 @@ base.withExtensions ({ all, ... }: with all; ([
   gettext
   gmp
   iconv
+  imap
   intl
   ldap
   mbstring
@@ -49,4 +50,4 @@ base.withExtensions ({ all, ... }: with all; ([
   xmlwriter
   zip
   zlib
-] ++ lib.optionals (!stdenv.isDarwin) [ imap ]))
+]))
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index 2be63015122f..e5eb38c32e44 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -22,6 +22,7 @@
 , libffi
 , libiconv
 , libjpeg
+, libkrb5
 , libpng
 , libsodium
 , libwebp
@@ -342,10 +343,8 @@ lib.makeScope pkgs.newScope (self: with self; {
         }
         {
           name = "imap";
-          buildInputs = [ uwimap openssl pam pcre2 ];
-          configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" ];
-          # uwimap doesn't build on darwin.
-          enable = (!stdenv.isDarwin);
+          buildInputs = [ uwimap openssl pam pcre2 libkrb5 ];
+          configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" "--with-kerberos" ];
         }
         {
           name = "intl";