gnu: slurp: Fix cross-compiling.

gnu/packages/image.scm(slurp):
[native-inputs]: When cross compiling, add wayland, pkg-config-for-build.

Change-Id: I5000d681b1428c5b7d123239c1f1ba00f121fb7e
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Zheng Junjie 2023-12-30 18:52:02 +08:00 committed by Mathieu Othacehe
parent 80f6e5a9ea
commit 24eb32f280
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -2259,7 +2259,11 @@ (define-public slurp
(base32 "1i6g4dfiv2mwkjvvrx3wizb1n05xmd4j9nkhdii4klwd1gdrhjwd"))))
(build-system meson-build-system)
(native-inputs
(list pkg-config scdoc))
(append (if (%current-target-system)
;; for wayland-scanner
(list wayland pkg-config-for-build)
'())
(list pkg-config scdoc)))
(inputs
(list cairo libxkbcommon wayland wayland-protocols))
(home-page "https://github.com/emersion/slurp")