hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit 8ed5023176e21161b124486d60ca2b042213c177
Author: NoƩ Lopez <[email protected]>
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 <[email protected]>
Signed-off-by: Hilton Chain <[email protected]>
Change-Id: Id871d577b8cb87144c7bb5c5102f987fe78d6620
---
gnu/packages/zig-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 845c97a798..c5086cd40e 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -475,3 +475,39 @@ Language Server Protocol} for the Zig programming
language.")
(inputs
(modify-inputs (package-inputs base)
(replace "zig" zig-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"))))
+ (build-system zig-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ ;; These tests can pass independently, but may cause
+ ;; ConnectionRefused error when running in order.
+ (add-before 'check 'skip-problematic-tests
+ (lambda _
+ (substitute* "src/http.zig"
+ ((".*http\\.(Request|Response).*" line)
+ (string-append
+ line "if (true) return error.SkipZigTest;"))))))))
+ (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))))