Subject: [PATCH 12/30] gnu: Add erlang-mqtree.

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

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

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

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index 9ee1e903bd..b3e8d13ad7 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -157,6 +157,32 @@ (define-public erlang-eimp
     (home-page "https://hex.pm/packages/eimp")
     (license license:asl2.0)))
 
+(define-public erlang-mqtree
+  (package
+    (name "erlang-mqtree")
+    (version "1.0.17")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri "mqtree" version))
+       (sha256
+        (base32 "18z23c1axn6y9799f0ydb0m29wxvq956b57bzk886ixwiz7vgs2z"))))
+    (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 "Index tree for MQTT topic filters")
+    (description "This package provides index tree for MQTT topic filters.")
+    (home-page "https://hex.pm/packages/mqtree")
+    (license license:asl2.0)))
+
 (define-public erlang-unicode-util-compat
   (package
     (name "erlang-unicode-util-compat")
-- 
2.45.2