summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/xorg.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index bf1ec48e55..98a8ccc7a4 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -5289,7 +5289,12 @@ EGLStream families of extensions.")
                   xkeyboard-config
                   xorgproto
                   xtrans))
-    (native-inputs (list pkg-config))
+    (native-inputs (cons pkg-config
+                         (if (%current-target-system)
+                           (list pkg-config-for-build
+                                 wayland
+                                 wayland-protocols)
+                           '())))
     (build-system meson-build-system)
     (arguments
      `(#:configure-flags