guix-commits
[Top][All Lists]
Advanced

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

13/15: gnu: Add zig-zul


From: guix-commits
Subject: 13/15: gnu: Add zig-zul
Date: Wed, 4 Dec 2024 12:52:50 -0500 (EST)

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

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

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

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 5e7e441061..456d65c4ca 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -512,3 +512,37 @@ Language Server Protocol} for the Zig programming 
language.")
          (replace "zig" zig-0.13))))))
 
 (define-public zig-zls zig-zls-0.13)
+
+(define-public zig-zul
+  ;; No releases.
+  (let ((commit "ae0c27350c0db6b460f22cba30b6b0c4a02d1ffd")
+        (revision "0"))
+    (package
+      (name "zig-zul")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/karlseguin/zul";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0h0581hhm6xzhb0s43aa357x4c4cxfvfpy24q4f5ss9jrgfc1g52"))
+                (modules '((guix build utils)))
+                (snippet
+                 ;; XXX: Some of the four http.Request/Response tests need to 
be
+                 ;; skipped, otherwise ConnectionRefused error occurs.  
(However
+                 ;; all of them pass when running independently.)
+                 #~(substitute* "src/http.zig"
+                     ((".*http\\.(Request|Response).*" line)
+                      (string-append
+                       line "if (true) return error.SkipZigTest;"))))))
+      (build-system zig-build-system)
+      (home-page "https://www.goblgobl.com/zul/";)
+      (synopsis "Zig utility library")
+      (description
+       "@code{zul} enhances Zig's standard library by wrapping common tasks
+(e.g., reading lines from a file) with simpler APIs and adding new 
functionality
+(e.g., @code{UUID} type).")
+      (license license:expat))))



reply via email to

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