Subject: [bug#68143] [PATCH 1/2] gnu: slurp: Fix cross-compiling.

From: Zheng Junjie <[email-masked]>
Date: Sat, 30 Dec 2023 18:52:02 +0800

gnu/packages/image.scm(slurp):
[native-inputs]: When cross compiling, add wayland, pkg-config-for-build.

Change-Id: I5000d681b1428c5b7d123239c1f1ba00f121fb7e
---
 gnu/packages/image.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 79f1a293ec..9179cb8b90 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -2259,7 +2259,11 @@ (define-public slurp
       (base32 "1i6g4dfiv2mwkjvvrx3wizb1n05xmd4j9nkhdii4klwd1gdrhjwd"))))
    (build-system meson-build-system)
    (native-inputs
-    (list pkg-config scdoc))
+    (append (if (%current-target-system)
+                ;; for wayland-scanner
+                (list wayland pkg-config-for-build)
+                '())
+            (list pkg-config scdoc)))
    (inputs
     (list cairo libxkbcommon wayland wayland-protocols))
    (home-page "https://github.com/emersion/slurp")
-- 
2.41.0