Subject: [PATCH 24/30] gnu: Add erlang-xmpp.

From: Igor Goryachev <[email-masked]>
Date: Mon, 5 Aug 2024 13:44:57 +0300

* gnu/packages/erlang-xyz.scm (erlang-xmpp): New variable.

Change-Id: Ic107320aada66fd7d32fc6a3488e3daa39f03325
---
 gnu/packages/erlang-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index 1a9c747ee1..a515bf83c2 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -382,6 +382,38 @@ (define-public erlang-fast-xml
     (home-page "https://hex.pm/packages/fast_xml")
     (license license:asl2.0)))
 
+(define-public erlang-xmpp
+  (package
+    (name "erlang-xmpp")
+    (version "1.8.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "xmpp" version))
+       (sha256
+        (base32 "04gpka0dp03jvgnin1g12ha4yzwy1h44rds3zzf1ia49k9ghcw7d"))))
+    (build-system rebar-build-system)
+    (inputs (list erlang-ezlib
+                  erlang-fast-tls
+                  erlang-fast-xml
+                  erlang-idna
+                  erlang-p1-utils
+                  erlang-stringprep))
+    (native-inputs (list erlang-pc erlang-provider-asn1))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-environment
+            (lambda _
+              (setenv "HOME" "/tmp")
+              (setenv "CC" "gcc"))))))
+    (synopsis "XMPP parsing and serialization library for Erlang/Elixir")
+    (description "This package provides XMPP parsing and serialization library
+for Erlang/Elixir.")
+    (home-page "https://hex.pm/packages/xmpp")
+    (license license:asl2.0)))
+
 (define-public erlang-fast-yaml
   (package
     (name "erlang-fast-yaml")
-- 
2.45.2