diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index 027377fa1b..b98a160e27 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -186,11 +186,20 @@ (define-public zig-logz (file-name (git-file-name name version)) (sha256 (base32 - "01xihyvyx3rpv0kvjh6mg1b99d6agq683q4iyn39nwqb6ma0i0sz")))) + "01xihyvyx3rpv0kvjh6mg1b99d6agq683q4iyn39nwqb6ma0i0sz")) + (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")))))) (build-system zig-build-system) - (arguments - (list - #:zig-inputs `(("metrics" ,zig-metrics)))) + (propagated-inputs (list zig-metrics)) (home-page "https://github.com/karlseguin/log.zig") (synopsis "Structured Logging for Zig") (description "logz is an opinionated structured logger that outputs to stdout, @@ -265,12 +274,21 @@ (define-public zig-httpz (file-name (git-file-name name version)) (sha256 (base32 - "02hixvyx1r04lg0nzvhkyrqwcwm8m8rs8hm01n2nzw6jv935frh8")))) + "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) - (arguments - (list #:zig-inputs - `(("metrics" ,zig-metrics) - ("websocket" ,zig-websocket)))) + (propagated-inputs (list zig-metrics zig-websocket)) (home-page "https://github.com/karlseguin/http.zig") (synopsis "HTTP/1.1 server for Zig") (description "") @@ -288,16 +306,26 @@ (define-public liskvork (file-name (git-file-name name version)) (sha256 (base32 - "1x7cif9wpaq7mk1pqmixq3flymrradb6zpx5qnmiihw699zr2xhw")))) + "1x7cif9wpaq7mk1pqmixq3flymrradb6zpx5qnmiihw699zr2xhw")) + (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))))) + '(("ini" . "zig-ini") + ("logz" . "zig-logz") + ("zul" . "zig-zul") + ("httpz" . "zig-httpz")))))) (build-system zig-build-system) (arguments (list #:install-source? #f - #:zig-release-type "safe" - #:zig-inputs - `(("ini" ,zig-ini) - ("logz" ,zig-logz) - ("zul" ,zig-zul) - ("httpz" ,zig-httpz)))) + #:zig-release-type "safe")) + (inputs (list zig-httpz zig-ini zig-logz zig-zul)) (home-page "https://liskvork.org") (synopsis "Modern multi-platform gomoku game server.") (description "liskvork is a modern Gomoku game server that is purpose-built for