From 98de78523be8009a13a67f65e4dc3cb5e22a5cea Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 27 Nov 2022 14:09:11 +0100 Subject: gnu: libxkbcommon: Fix cross-compilation. * gnu/packages/xdisorg.scm (libxkbcommon)[native-inputs]: When cross-compiling, add PKG-CONFIG-FOR-BUILD and WAYLAND. --- gnu/packages/xdisorg.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 1a4d805f19..9cc7cc652a 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -516,7 +516,12 @@ avoiding password prompts when X11 forwarding has already been setup.") 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=" -- cgit 1.4.1