diff mbox series

[bug#72474,22/30] gnu: Add erlang-epam.

Message ID a1e767691c5e9a8aec0e1d2da61082104e91f088.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-epam): New variable.

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

Patch

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index 565de27608..5de258d316 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -19,6 +19,7 @@ 
 (define-module (gnu packages erlang-xyz)
   #:use-module (gnu packages)
   #:use-module (gnu packages erlang)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages python)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages tls)
@@ -401,6 +402,33 @@  (define-public erlang-yconf
     (home-page "https://hex.pm/packages/yconf")
     (license license:asl2.0)))
 
+(define-public erlang-epam
+  (package
+    (name "erlang-epam")
+    (version "1.0.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "epam" version))
+       (sha256
+        (base32 "12frsirp8m0ajdb19xi1g86zghhgvld5cgw459n2m9w553kljd1g"))))
+    (build-system rebar-build-system)
+    (native-inputs (list erlang-pc linux-pam))
+    (arguments
+     (list
+      #:tests? #f ; no tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-environment
+            (lambda _
+              (setenv "HOME" "/tmp")
+              (setenv "CC" "gcc"))))))
+    (synopsis "Helper for PAM authentication support")
+    (description "This package provides epam helper for PAM authentication
+support.")
+    (home-page "https://hex.pm/packages/epam")
+    (license license:asl2.0)))
+
 (define-public erlang-unicode-util-compat
   (package
     (name "erlang-unicode-util-compat")