gnu: kanshi: Fix cross-compilation.

* gnu/packages/wm.scm (kanshi)[native-inputs]: Add wayland. Remove
libscfg. When cross-compilation, Add pkg-config-for-build.
[inputs]: Add libscfg.

Change-Id: I45c17196dfc85157afa31dd4ae6db579dfc37723
This commit is contained in:
Zheng Junjie 2024-08-23 14:02:14 +08:00
parent 883e900e51
commit bf3482bc4d
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -2374,8 +2374,11 @@ (define-public kanshi
(sha256
(base32 "0g5glpkcn54ypfym4lpfdjai479yfazcai1rg86bn72nkcbpwfql"))))
(build-system meson-build-system)
(inputs (list wayland))
(native-inputs (list pkg-config scdoc libscfg))
(inputs (list libscfg wayland))
(native-inputs (append (if (%current-target-system)
(list pkg-config-for-build)
(list))
(list pkg-config scdoc wayland)))
(home-page "https://wayland.emersion.fr/kanshi")
(synopsis "Hotswappable output profiles for Wayland")
(description "Kanshi allows you to define output profiles that are