diff mbox series

[bug#72474,24/30] gnu: Add erlang-xmpp.

Message ID 48a5d666fb664693bfc3ffbd60f91eb38631016e.1722851684.git.igor@goryachev.org
State New
Headers show
Series Add ejabberd package. | expand

Commit Message

Igor Goryachev Aug. 5, 2024, 10:44 a.m. UTC
* gnu/packages/erlang-xyz.scm (erlang-xmpp): New variable.

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

Patch

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")