gnu: river: Add river.desktop file.

* gnu/packages/zig-xyz.scm (river)[arguments]: Add 'install-wayland-session
phase after 'install phase to install the river.desktop file inside
share/wayland-sessions directory.

Change-Id: I19fbcfa09a6b06ed602ec4be1b06cc6e2cd2a9a1
Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Erik Eduardo 2024-02-08 17:32:00 +00:00 committed by Christopher Baines
parent 3fa4a8baf3
commit ca47a1346a
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -52,7 +52,17 @@ (define-public river
(build-system zig-build-system)
(arguments
(list
#:zig-build-flags #~(list "-Dxwayland") ;experimental xwayland support
#: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