Subject: Re: [bug#75522] [PATCH v0 2/4] gnu: Add zig-wayland-beanbag.

From: Hilton Chain <[email-masked]>
Date: Tue, 14 Jan 2025 14:55:15 +0800

On Mon, 13 Jan 2025 02:19:01 +0800,
Ashvith Shetty wrote:
>
> This is a package variant of zig-wayland required by beanbag.
> * gnu/packages/zig-xyz.scm (zig-wayland-beanbag): New variable.
>
> Change-Id: Id429a70e4cc30772357a706cd2b83798ce5ca1af
> ---
>  gnu/packages/zig-xyz.scm | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)

You can package beanbag 0.1.1 instead, which supports zig-wayland 0.2.0.

> diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
> index afb609ad50..bf86c0897a 100644
> --- a/gnu/packages/zig-xyz.scm
> +++ b/gnu/packages/zig-xyz.scm
> @@ -240,6 +240,24 @@ (define-public zig-wayland
>      (home-page "https://codeberg.org/ifreund/zig-wayland")
>      (license license:expat)))
>
> +(define zig-wayland-beanbag
> +  (let ((commit "4761e625bcc8218650625edc4734710b29a9ff0b")
> +        (revision "0"))
> +    (hidden-package
> +      (package
> +        (inherit zig-wayland)
> +        (name "zig-wayland")
> +        (version (git-version "0.3.0" revision commit))

BTW, 0.3.0 + revision > 0.3.0.

> +        (source
> +         (origin
> +           (method git-fetch)
> +           (uri (git-reference
> +                 (url "https://codeberg.org/ifreund/zig-wayland")
> +                 (commit commit)))
> +           (file-name (git-file-name name version))
> +           (sha256
> +            (base32 "1v669w8mnm5bp8508cvy41189njai8j92r6l9j5advk8589c18f7"))))))))
> +
>  (define-public zig-wlroots
>    (package
>      (name "zig-wlroots")
> --
> 2.47.1