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

Message ID 20250112181920.8248-2-ashvithshetty10@gmail.com
State New
Headers
Series Add beanbag |

Commit Message

Ashvith Shetty Jan. 12, 2025, 6:19 p.m. UTC
  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(+)
  

Comments

Hilton Chain Jan. 14, 2025, 6:55 a.m. UTC | #1
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
  

Patch

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))
+        (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")