diff mbox series

[bug#72474,16/30] gnu: Add erlang-ezlib.

Message ID bbc64f5bb470c1cec6a148722cc564aabd246775.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-ezlib): New variable.

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

Patch

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index 488c7a766c..58b503b49c 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -242,6 +242,32 @@  (define-public erlang-mqtree
     (home-page "https://hex.pm/packages/mqtree")
     (license license:asl2.0)))
 
+(define-public erlang-ezlib
+  (package
+    (name "erlang-ezlib")
+    (version "1.0.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "ezlib" version))
+       (sha256
+        (base32 "1fxz584ry1ib35r74hbmapwq71j5iv5rymm927ys0mgdz2rjmrly"))))
+    (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 "Native zlib driver for Erlang/Elixir")
+    (description "This package provides native zlib driver for Erlang/Elixir.")
+    (home-page "https://hex.pm/packages/ezlib")
+    (license license:asl2.0)))
+
 (define-public erlang-unicode-util-compat
   (package
     (name "erlang-unicode-util-compat")