Subject: [bug#49091] [PATCH] gnu: php: Build sodium.

From: Aljosha Papsch <[email-masked]>
Date: Fri, 18 Jun 2021 14:22:57 +0200

* gnu/packages/php.scm (php): Build sodium extension.
---
 gnu/packages/php.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
index 71e4f5ca5e..4edff2cfd8 100644
--- a/gnu/packages/php.scm
+++ b/gnu/packages/php.scm
@@ -28,6 +28,7 @@
   #:use-module (gnu packages base)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages databases)
@@ -104,6 +105,7 @@
                ;; now uses the Aspell library.
                (with "--with-pspell" "aspell")
                (with "--with-readline" "readline")
+               (with "--with-sodium" "libsodium")
                (with "--with-sqlite3" "sqlite")
                (with "--with-tidy" "tidy")
                (with "--with-xsl" "libxslt")
@@ -359,6 +361,7 @@
        ("icu4c" ,icu4c)
        ("libgcrypt" ,libgcrypt)
        ("libpng" ,libpng)
+       ("libsodium" ,libsodium)
        ("libxml2" ,libxml2)
        ("libxslt" ,libxslt)
        ("libx11" ,libx11)
-- 
2.32.0