guix-commits
[Top][All Lists]
Advanced

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

81/81: gnu: Add zig-httpz.


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

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

commit 4809392944ac1f4f4ab6a94c5c89a2a8c50388db
Author: NoƩ Lopez <noelopez@free.fr>
AuthorDate: Wed Dec 4 21:41:10 2024 +0800

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

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 41fc612f22..82a053e0b9 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -236,6 +236,34 @@ syntax highlighting and run code snippets to ensure they 
behave as expected.")
       (home-page "https://github.com/kristoff-it/zig-doctest";)
       (license license:expat))))
 
+(define-public zig-httpz
+  ;; No releases, latest commit from zig-0.13 branch
+  (let ((commit "7d2ddae87af9b110783085c0ea6b03985faa4584")
+        (revision "0"))
+    (package
+      (name "zig-httpz")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/karlseguin/http.zig";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "02hixvyx1r04lg0nzvhkyrqwcwm8m8rs8hm01n2nzw6jv935frh8"))
+         (snippet
+          (rename-zig-dependencies
+           '(("metrics" . "zig-metrics")
+             ("websocket" . "zig-websocket"))))))
+      (build-system zig-build-system)
+      (propagated-inputs (list zig-metrics zig-websocket))
+      (home-page "https://github.com/karlseguin/http.zig";)
+      (synopsis "HTTP/1.1 server for Zig")
+      (description "This package provides an HTTP/1.1 server for Zig.")
+      (license license:expat))))
+
 (define-public zig-ini
   ;; No releases.
   (let ((commit "e18d36665905c1e7ba0c1ce3e8780076b33e3002")



reply via email to

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