guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

67/85: gnu: river: Update to 0.3.5.


From: guix-commits
Subject: 67/85: gnu: river: Update to 0.3.5.
Date: Sat, 21 Dec 2024 12:30:53 -0500 (EST)

hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit 64106846a1b9e886dae6979d03c00353701a9f38
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Wed Nov 20 08:36:32 2024 +0800

    gnu: river: Update to 0.3.5.
    
    * gnu/packages/zig-xyz.scm (river): Update to 0.3.5.
    [arguments]<#:zig>: Remove argument.
    <#:zig-build-flags>: Add "-Dpie".
    <#:phases>: Fix /bin/sh path in build.zig.
    [native-inputs]: Remove libxkbcommon, pixman, wayland, wayland-protocols,
    wlroots-0.16.
    Move libevdev to...
    [inputs]: ...here.
    Add zig-pixman, zig-wayland, zig-wlroots, zig-xkbcommon.
    
    Change-Id: Ibdda51236a855380534b88aff61c17d2e6235f28
---
 gnu/packages/zig-xyz.scm | 59 ++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index b5258588b3..b35498e8e6 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -39,43 +39,44 @@
 (define-public river
   (package
     (name "river")
-    (version "0.2.4")
+    (version "0.3.5")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/riverwm/river";)
-             (commit (string-append "v" version))
-             (recursive? #t)))
+             (url "https://codeberg.org/river/river";)
+             (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1nvhqs6wwisf8ama7y1y3q3nf2jm9sh5bn46z8kyds8cikm0x1vh"))))
+        (base32 "023c3kqqmnd1vs5q7p1xgspkqzc59v61rpp615c06lpswi0a6him"))))
     (build-system zig-build-system)
     (arguments
-     (list
-      #:zig zig-0.10
-      #:install-source? #f
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'install 'install-wayland-session
-            (lambda* (#:key outputs #:allow-other-keys)
-              (let* ((out (assoc-ref outputs "out"))
-                     (wayland-sessions
-                      (string-append out "/share/wayland-sessions")))
-                (mkdir-p wayland-sessions)
-                (install-file "contrib/river.desktop"
-                              wayland-sessions)))))
-      #:zig-build-flags #~(list "-Dxwayland") ;experimental xwayland support
-      #:zig-release-type "safe"))
-    (native-inputs (list libevdev
-                         libxkbcommon
-                         pkg-config
-                         pixman
-                         scdoc
-                         wayland
-                         wayland-protocols
-                         wlroots-0.16))
-    (home-page "https://github.com/riverwm/river";)
+     (list #:install-source? #f
+           #:zig-release-type "safe"
+           #:zig-build-flags
+           #~(list "-Dpie" "-Dxwayland")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-path
+                 (lambda _
+                   (substitute* "build.zig"
+                     (("/bin/sh") (which "sh")))))
+               (add-after 'install 'install-wayland-session
+                 (lambda _
+                   (let ((wayland-sessions
+                          (string-append #$output "/share/wayland-sessions")))
+                     (mkdir-p wayland-sessions)
+                     (install-file "contrib/river.desktop"
+                                   wayland-sessions)))))))
+    (inputs
+     (list libevdev
+           zig-wayland
+           zig-wlroots
+           zig-xkbcommon))
+    (native-inputs
+     (list pkg-config
+           scdoc))
+    (home-page "https://isaacfreund.com/software/river/";)
     (synopsis "Dynamic tiling Wayland compositor")
     (description
      "River is a dynamic tiling Wayland compositor with flexible



reply via email to

[Prev in Thread] Current Thread [Next in Thread]