[bug#75522,v0,0/4] Add beanbag

Message ID 20250112181145.7801-1-ashvithshetty10@gmail.com
Headers
Series Add beanbag |

Message

Ashvith Shetty Jan. 12, 2025, 6:11 p.m. UTC
This patch series includes beanbag, as well as it's dependencies. One 
such dependency, `zig-wayland-beanbag`, is a package variant of 
`zig-wayland`. `zigimg`, another dependency, does not have a tag 
available yet, and hence the use of commit to pin to the version 
required by beanbag.

Ashvith Shetty (4):
  gnu: Add zig-clap.
  gnu: Add zig-wayland-beanbag.
  gnu: Add zig-img.
  gnu: Add beanbag.

 gnu/packages/zig-xyz.scm | 102 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
  

Comments

Ashvith Shetty March 24, 2025, 12:12 p.m. UTC | #1
* gnu/packages/zig-xyz.scm (zig-clap): New variable.



Change-Id: Iae01f44bd9ddb312b51cf899c24f6b56a808d026

---

gnu/packages/zig-xyz.scm | 22 ++++++++++++++++++++++

1 file changed, 22 insertions(+)



diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm

index a76dbb0473..4d1cbf9000 100644

--- a/gnu/packages/zig-xyz.scm

+++ b/gnu/packages/zig-xyz.scm

@@ -3,6 +3,7 @@

;;; Copyright © 2023 Ekaitz Zarraga <mailto:ekaitz@elenq.tech>

;;; Copyright © 2023 Felix Lechner <mailto:felix.lechner@lease-up.com>

;;; Copyright © 2024 Justin Veilleux <mailto:terramorpha@cock.li>

+;;; Copyright © 2025 Ashvith Shetty <mailto:ashvithshetty0010@zohomail.in>

;;;

;;; This file is part of GNU Guix.

;;;

@@ -141,6 +142,27 @@ (define-public waylock

@code{ext-session-lock-v1} protocol.")

     (license license:expat)))



+(define-public zig-clap

+  (package

+    (name "zig-clap")

+    (version "0.9.1")

+    (source

+     (origin

+       (method git-fetch)

+       (uri (git-reference

+             (url "https://github.com/Hejsil/zig-clap")

+             (commit version)))

+       (file-name (git-file-name name version))

+       (sha256

+        (base32 "1xjskvyib3kai3nmp574zfm07yvjsbzsxfysj96ss9339nq07ix6"))))

+    (build-system zig-build-system)

+    (home-page "https://github.com/Hejsil/zig-clap")

+    (synopsis "Command line argument parsing library for Zig")

+    (description

+     "@code{zig-clap} is a simple and easy to use command line argument parser library for

+Zig.")

+    (license license:expat)))

+

(define-public zig-diffz

   (let ((commit "420fcb22306ffd4c9c3c761863dfbb6bdbb18a73")

         (revision "0"))

--

2.48.1
  
Ashvith Shetty March 24, 2025, 12:13 p.m. UTC | #2
* gnu/packages/zig-xyz.scm (zig-img): New variable.



Change-Id: If87e1f65d3aa544b30ea3fb0da4e292bcec5e567

---

gnu/packages/zig-xyz.scm | 24 ++++++++++++++++++++++++

1 file changed, 24 insertions(+)



diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm

index 4d1cbf9000..37c6e27e0a 100644

--- a/gnu/packages/zig-xyz.scm

+++ b/gnu/packages/zig-xyz.scm

@@ -187,6 +187,30 @@ (define-public zig-diffz

       (home-page "https://github.com/ziglibs/diffz")

       (license license:expat))))



+(define-public zig-img

+  ;; zig-img is required by beanbag. However, there's no tags at the

+  ;; moment, so we'll be using the commit mentioned in beanbag's repo.

+  (let ((commit "52f10dd3e3b1cd4614fe72a8a8f0eddc7700bc0a")

+        (revision "0"))

+    (package

+      (name "zig-img")

+      (version (git-version "0.1.0" revision commit))

+      (source

+       (origin

+         (method git-fetch)

+         (uri (git-reference

+               (url "https://github.com/zigimg/zigimg")

+               (commit commit)))

+         (file-name (git-file-name name version))

+         (sha256

+          (base32 "187nh49rdv37arlvf056jiv58n4y87q2pm6qvznn75zrszjlvp0b"))))

+      (build-system zig-build-system)

+      (home-page "https://github.com/zigimg/zigimg")

+      (synopsis "Zig library for reading and writing different image formats")

+      (description

+       "@code{zig-img} is a Zig library for reading and writing different image formats.")

+      (license license:expat))))

+

(define-public zig-known-folders

   (let ((commit "1cceeb70e77dec941a4178160ff6c8d05a74de6f")

         (revision "0"))

--

2.48.1
  
Ashvith Shetty March 24, 2025, 12:14 p.m. UTC | #3
* gnu/packages/zig-xyz.scm (beanbag): New variable.



Change-Id: I1ffb34dd771e4cb0938f1c471573e6bbe1ff5046

---

gnu/packages/zig-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++++

1 file changed, 40 insertions(+)



diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm

index 37c6e27e0a..9d4d02c02d 100644

--- a/gnu/packages/zig-xyz.scm

+++ b/gnu/packages/zig-xyz.scm

@@ -38,6 +38,46 @@ (define-module (gnu packages zig-xyz)

   #:use-module (gnu packages xorg)

   #:use-module (gnu packages zig))



+(define-public beanbag

+  (package

+    (name "beanbag")

+    (version "0.1.1")

+    (source

+     (origin

+       (method git-fetch)

+       (uri (git-reference

+             (url "https://codeberg.org/bwbuhse/beanbag")

+             (commit (string-append "v" version))))

+       (file-name (git-file-name name version))

+       (sha256

+        (base32 "1d2h5bqicqnyawswdq7bg1w9frjk0ra2sva1as2qgc5s7pjclyql"))

+       (snippet (rename-zig-dependencies '(("clap" . "zig-clap")

+                                           ("zigimg" . "zig-img"))))))

+    (build-system zig-build-system)

+    (arguments

+     (list

+      ;; Nothing to test

+      #:tests? #f

+      #:install-source? #f

+      #:zig-release-type "safe"

+      #:phases

+      #~(modify-phases %standard-phases

+          (add-after 'unpack 'remove-deps

+            (lambda* (#:key inputs #:allow-other-keys)

+              (delete-file-recursively "protocol")

+              (substitute* "build.zig"

+                (("protocol\\/wlr-layer-shell-unstable-v1.xml")

+                 (string-append (search-input-file inputs

+                  "share/wlr-protocols/unstable/wlr-layer-shell-unstable-v1.xml")))))))))

+    (inputs (list zig-clap zig-img zig-pixman zig-wayland))

+    (native-inputs (list pkg-config wlr-protocols))

+    (home-page "https://codeberg.org/bwbuhse/beanbag")

+    (synopsis "Wallpaper app for Wayland compositors")

+    (description

+     "@code{beanbag} is a wallpaper app for Wayland compositors, heavily inspired by

+     dnkl's @code{wbg}.")

+    (license license:gpl3)))

+

(define-public river

   (package

     (name "river")

--

2.48.1
  
Ashvith Shetty March 24, 2025, 1:09 p.m. UTC | #4
Ashvith Shetty (3):
  gnu: Add zig-clap.
  gnu: Add zig-img.
  gnu: Add beanbag.

 gnu/packages/zig-xyz.scm | 86 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
  
Hilton Chain March 25, 2025, 9:05 a.m. UTC | #5
On Mon, 24 Mar 2025 21:09:49 +0800,
Ashvith Shetty wrote:
>
> Ashvith Shetty (3):
>   gnu: Add zig-clap.
>   gnu: Add zig-img.
>   gnu: Add beanbag.
>
>  gnu/packages/zig-xyz.scm | 86 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 86 insertions(+)
>
> --
> 2.48.1

Applied as the following commits, with modifications:

14d7fe42b8 gnu: Add beanbag.
82619151c7 gnu: Add zig-zigimg.
3be752259d gnu: Add zig-clap.

Thanks