Subject: [bug#66894] [PATCH v2] gnu: Add rivercarro layout generator for river wayland compositor

From: Alec Barreto <[email-masked]>
Date: Sat, 4 Nov 2023 19:48:03 +0000

Linting issues should be fixed.

The build is succeeding on x86 but failing on arm.
This seems to be a zig issue which has since been fixed in zig 0.11 - https://github.com/ziglang/zig/issues/16800

However as mentioned guix only has zig 0.10 and probably won't be getting zig 0.11 any time soon.

Change-Id: Id9d1d808fae3ac6e0469cbe294a9a3652ce19101

gnu: fix formatting according to =guix lint=

Change-Id: Id61ff3c16f374e7211df2446ad3c6f09598f8981
---
 gnu/packages/zig-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 200b5c9940..48ccbf32d8 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -70,6 +70,35 @@ (define-public river
 directly from a tty using KMS/DRM.")
     (license license:gpl3)))
 
+(define-public rivercarro
+  (package
+    (name "rivercarro")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~novakane/rivercarro")
+             (commit (string-append "v" version))
+             (recursive? #t)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1a852hkakha3f5djnd8jrmkcq0xcdxbcbidr2kkfbqrhni9p33cl"))))
+    (build-system zig-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (delete 'validate-runpath))))
+    (native-inputs (list pkg-config wayland wayland-protocols))
+    (home-page "https://git.sr.ht/~novakane/rivercarro")
+    (synopsis
+     "Slightly modified version of rivertile layout generator for river")
+    (description
+     "Modified version of rivertile which adds:
+monocle layout, gaps rather than padding,
+gap size modification at run time, and smart gaps.")
+    (license license:gpl3)))
+
 (define-public tigerbeetle
   (package
     (name "tigerbeetle")

base-commit: e3f318f0489322c4c9b5964f03a8b063a7bfbebd
-- 
2.41.0