Subject: [PATCH 19/30] gnu: Add erlang-fast-xml.

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

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