summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/xdisorg.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index db948a9318..a56399341a 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -527,9 +527,13 @@ avoiding password prompts when X11 forwarding has already been setup.")
            wayland-protocols
            xkeyboard-config))
     (native-inputs
-     (list bison doxygen pkg-config python
-           ;; wayland-scanner is required at build time.
-           wayland))
+     (append
+       (list bison doxygen pkg-config python
+             ;; wayland-scanner is required at build time.
+             wayland)
+       (if (%current-target-system)
+         (list pkg-config-for-build)
+         '())))
     (arguments
      (list #:configure-flags
            #~(list (string-append "-Dxkb-config-root="