Subject: [bug#72474] [PATCH 23/30] gnu: Add erlang-p1-acme.

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

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

Change-Id: I2bd58524f1a41ef18971ccf7e4fb3fb5cc7e3cdf
---
 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 5de258d316..1a9c747ee1 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -108,6 +108,33 @@ (define-public erlang-pkix
     (home-page "https://hex.pm/packages/pkix")
     (license license:asl2.0)))
 
+(define-public erlang-p1-acme
+  (package
+    (name "erlang-p1-acme")
+    (version "1.0.23")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "p1_acme" version))
+       (sha256
+        (base32 "0nfxs3ldgbh7a8r7wxl0gw98r1v50jaj54c0nw8fl8ixdvr9dqcc"))))
+    (build-system rebar-build-system)
+    (inputs (list erlang-base64url erlang-idna erlang-jiffy erlang-jose
+                  erlang-yconf))
+    (native-inputs (list erlang-pc))
+    (arguments
+     (list
+      #:tests? #f ; no tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-environment
+            (lambda _
+              (setenv "HOME" "/tmp"))))))
+    (synopsis "ACME client for Erlang")
+    (description "This package provides ACME client for Erlang.")
+    (home-page "https://hex.pm/packages/p1_acme")
+    (license license:asl2.0)))
+
 (define-public erlang-p1-oauth2
   (package
     (name "erlang-p1-oauth2")
-- 
2.45.2