[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: squash! gnu: Add zig-httpz.
From: |
guix-commits |
Subject: |
02/02: squash! gnu: Add zig-httpz. |
Date: |
Wed, 4 Dec 2024 12:55:17 -0500 (EST) |
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit 65dea089ae77fff8a39e2014ae92ac3ebe3898a6
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Thu Dec 5 01:55:03 2024 +0800
squash! gnu: Add zig-httpz.
Change-Id: Ic21bbc4b001d54f568763812fe99bbddcf5c9eb9
---
gnu/packages/zig-xyz.scm | 61 ++++++++++++++++++++++++------------------------
1 file changed, 31 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index afed05cc73..b33db1cbf7 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -129,36 +129,37 @@ will cause the executable to crash.")
;; 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"))
- (modules '((guix build utils)))
- (snippet
- #~(for-each
- (lambda (dep)
- (substitute* "build.zig"
- (((string-append "(b\\.dependency.\")" (car dep)) _
prefix)
- (string-append prefix (cdr dep))))
- (substitute* "build.zig.zon"
- (((string-append "\\." (car dep)))
- (format #f ".@\"~a\"" (cdr dep)))))
- '(("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))))
+ (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"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(for-each
+ (lambda (dep)
+ (substitute* "build.zig"
+ (((string-append "(b\\.dependency.\")" (car dep)) _ prefix)
+ (string-append prefix (cdr dep))))
+ (substitute* "build.zig.zon"
+ (((string-append "\\." (car dep)))
+ (format #f ".@\"~a\"" (cdr dep)))))
+ '(("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.