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

commit 13db53d76c842d4566e5f6446da0eee820d58746
Author: Hilton Chain <[email protected]>
AuthorDate: Mon Dec 30 15:10:22 2024 +0800

    gnu: Add zig-libxev.
    
    * gnu/packages/zig-xyz.scm (zig-libxev): New variable.
    
    Change-Id: I04ea01558bea6e452d1447da5bb9f221c7fa7a20
---
 gnu/packages/zig-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 2b0eb27d6c..3c10ffa06e 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -300,6 +300,38 @@ across several operating systems.")
       (home-page "https://github.com/ziglibs/known-folders";)
       (license license:expat))))
 
+(define-public zig-libxev
+  (let ((commit "db6a52bafadf00360e675fefa7926e8e6c0e9931")
+        (revision "0"))
+    (package
+      (name "zig-libxev")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mitchellh/libxev";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1c2xdp5p6qf513w3niqby7n3p29dq6rc6chq505slh2b31s16bwc"))))
+      (build-system zig-build-system)
+      (arguments
+       (list #:zig-release-type "safe"
+             #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'unpack 'build-shared-library
+                   (lambda _
+                     (substitute* "build.zig"
+                       (("target.query.isNative..") "true")))))))
+      (native-inputs (list scdoc))
+      (synopsis "Cross-platform event loop")
+      (description
+       "This package provides a unified event loop abstraction for non-blocking
+IO, timers, signals, events, etc., with both Zig and C-compatible APIs.")
+      (home-page "https://github.com/mitchellh/libxev";)
+      (license license:expat))))
+
 (define-public zig-logz
   ;; No releases, latest commit from zig-0.13 branch.
   (let ((commit "5d5bbaeb98ad30cda30c60ab0f2d1a7fb4890676")

Reply via email to