gnu: libxkbcommon: Fix cross-compilation.

* gnu/packages/xdisorg.scm (libxkbcommon)[native-inputs]: When
cross-compiling, add PKG-CONFIG-FOR-BUILD and WAYLAND.
This commit is contained in:
Marius Bakke 2022-11-27 14:09:11 +01:00
parent 8c9656bc2f
commit 98de78523b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -516,7 +516,12 @@ (define-public libxkbcommon
wayland-protocols
xkeyboard-config))
(native-inputs
(list bison doxygen pkg-config python))
(append (list bison doxygen pkg-config python)
(if (%current-target-system)
;; wayland-scanner is required at build time.
;; TODO: Remove this conditional on core-updates.
(list pkg-config-for-build wayland)
'())))
(arguments
`(#:configure-flags
(list (string-append "-Dxkb-config-root="