gnu: wayland-protocols: Fix cross-compilation

* gnu/packages/freedesktop.scm (wayland-protocols): Fix cross-compilation
[native-inputs]: Add pkg-config-for-build and wayland.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Tobias Kortkamp 2022-08-26 12:14:58 +02:00 committed by Mathieu Othacehe
parent 01df491f6d
commit 6beadc82df
No known key found for this signature in database
GPG Key ID: 8354763531769CA6

@ -1074,8 +1074,11 @@ fullscreen) or other display servers.")
(build-system meson-build-system) (build-system meson-build-system)
(inputs (inputs
(list wayland)) (list wayland))
(native-inputs (native-inputs (cons* pkg-config python
(list pkg-config python)) (if (%current-target-system)
(list pkg-config-for-build
wayland) ; for wayland-scanner
'())))
(synopsis "Wayland protocols") (synopsis "Wayland protocols")
(description "Wayland-Protocols contains Wayland protocols that add (description "Wayland-Protocols contains Wayland protocols that add
functionality not available in the Wayland core protocol. Such protocols either functionality not available in the Wayland core protocol. Such protocols either