gnu: swaybg: Fix cross-compiling.

* gnu/packages/wm.scm (swaybg)[inputs]: When cross-compiling add
wayland-protocols.
[native-inputs]: When cross-compiling add pkg-config-for-build, wayland.
This commit is contained in:
Efraim Flashner 2023-10-15 13:08:54 +03:00
parent d7c5456a39
commit 8f84587be7
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1837,8 +1837,16 @@ display a clock or apply image manipulation techniques to the background image."
(sha256
(base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
(build-system meson-build-system)
(inputs (list cairo gdk-pixbuf wayland))
(native-inputs (list pkg-config scdoc wayland-protocols))
(inputs
(cons* cairo gdk-pixbuf wayland
(if (%current-target-system)
(list wayland-protocols)
'())))
(native-inputs
(cons* pkg-config scdoc wayland-protocols
(if (%current-target-system)
(list pkg-config-for-build wayland)
'())))
(home-page "https://github.com/swaywm/sway")
(synopsis "Screen wallpaper utility for Wayland compositors")
(description "Swaybg is a wallpaper utility for Wayland compositors.")