diff mbox series

[bug#72474,09/30] gnu: Add erlang-stringprep.

Message ID 6df13bf79f41be1232ff1b8105377df1d233afb5.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-stringprep): New variable.

Change-Id: I83ae7c53fc83eec756b208ed2d539a0976c72611
---
 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 cb306d30b8..de70852399 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -78,6 +78,33 @@  (define-public erlang-p1-utils
     (home-page "https://hex.pm/packages/p1_utils")
     (license license:asl2.0)))
 
+(define-public erlang-stringprep
+  (package
+    (name "erlang-stringprep")
+    (version "1.0.30")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "stringprep" version))
+       (sha256
+        (base32 "16hb49f9ghx8sqrs7928fjig9wyah22z7cl91y1pff50hhrrpz7n"))))
+    (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 Stringprep Erlang/Elixir implementation")
+    (description "This package provides fast Stringprep Erlang/Elixir
+implementation.")
+    (home-page "https://hex.pm/packages/stringprep")
+    (license license:asl2.0)))
+
 (define-public erlang-unicode-util-compat
   (package
     (name "erlang-unicode-util-compat")