diff mbox series

[bug#72474,19/30] gnu: Add erlang-fast-xml.

Message ID 4293d24e463cf2f873fdbc1bc785f722748d389e.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-fast-xml): New variable.

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

Patch

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index d534cc4c6f..f0d62e1679 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -326,6 +326,33 @@  (define-public erlang-stun
     (home-page "https://hex.pm/packages/stun")
     (license license:asl2.0)))
 
+(define-public erlang-fast-xml
+  (package
+    (name "erlang-fast-xml")
+    (version "1.1.52")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "fast_xml" version))
+       (sha256
+        (base32 "1z8vrpnjx8y9qfqhhj4is8k4lzvjlnzhp6d62r8bdlh61qwr4lbr"))))
+    (build-system rebar-build-system)
+    (inputs (list erlang-p1-utils))
+    (native-inputs (list erlang-pc))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-environment
+            (lambda _
+              (setenv "HOME" "/tmp")
+              (setenv "CC" "gcc"))))))
+    (synopsis "Fast Expat-based Erlang/Elixir XML parsing library")
+    (description "This package provides fast Expat-based Erlang/Elixir XML
+parsing library.")
+    (home-page "https://hex.pm/packages/fast_xml")
+    (license license:asl2.0)))
+
 (define-public erlang-unicode-util-compat
   (package
     (name "erlang-unicode-util-compat")