guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

77/81: gnu: Add zig-metrics.


From: guix-commits
Subject: 77/81: gnu: Add zig-metrics.
Date: Thu, 5 Dec 2024 01:33:34 -0500 (EST)

hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit f7e3d0fd144c6a15bedf2f1194e72e11dc02fb65
Author: NoƩ Lopez <noelopez@free.fr>
AuthorDate: Tue Dec 3 23:32:59 2024 +0800

    gnu: Add zig-metrics.
    
    * gnu/packages/zig-xyz.scm (zig-metrics): New variable.
    
    Modified-by: Hilton Chain <hako@ultrarare.space>
    Signed-off-by: Hilton Chain <hako@ultrarare.space>
    Change-Id: Ia97dd4bf121a982365677802a2e09eeb4883a7f2
---
 gnu/packages/zig-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index ce9c7f9fac..68a6ac4510 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -288,6 +288,35 @@ across several operating systems.")
       (home-page "https://github.com/ziglibs/known-folders";)
       (license license:expat))))
 
+(define-public zig-metrics
+  ;; No releases, latest commit from zig-0.13 branch.
+  (let ((commit "fcf9e94fa54a20f4954e9821801c32e44d407a2f")
+        (revision "0"))
+    (package
+      (name "zig-metrics")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/karlseguin/metrics.zig";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1vvfy97ak5xwvwv3rkqsgsj644298d3c75645386qf4psija6a25"))
+                (modules '((guix build utils)))
+                (snippet
+                 #~(substitute* "example/lib/metrics.zig"
+                     (("try (Metrics.Active.init)" _ keep) keep)))))
+      (build-system zig-build-system)
+      (home-page "https://github.com/karlseguin/metrics.zig";)
+      (synopsis "Prometheus metrics library")
+      (description
+       "@code{metrics} is a Prometheus metrics library with support for
+@code{counters}, @code{gauges} and @code{histograms} metric types and their
+labeled variants.")
+      (license license:expat))))
+
 (define-public zig-pixman
   (package
     (name "zig-pixman")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]