summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorZheng Junjie <zhengjunjie@iscas.ac.cn>2023-12-30 19:07:20 +0800
committerMathieu Othacehe <othacehe@gnu.org>2024-01-03 15:32:01 +0100
commitae63bb5e7de70011d8861c23ebabc946210ec56f (patch)
tree2825f9b79898deb9386f27f6af8d6426d227cfad /gnu
parent2d38579e010b802aaef489be1da8c74e5ba53f15 (diff)
downloadguix-ae63bb5e7de70011d8861c23ebabc946210ec56f.tar.gz
gnu: grim: Fix cross-compiling.
gnu/packages/image.scm(grim):
[native-inputs]: When cross compiling, add wayland, pkg-config-for-build.

Change-Id: I9dbf99d0bc92a62b17ded36937827dfbc6b29bb2
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/image.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 9c3e797437..baaff1d0c1 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -2236,7 +2236,11 @@ identical visual appearance.")
      (sha256
       (base32 "1snp4qlj05d0nx4f0qr8kywv0i1xcw5i278ybng1rand2alhkjz5"))))
    (build-system meson-build-system)
-   (native-inputs (list pkg-config scdoc))
+   (native-inputs (append (if (%current-target-system)
+                              ;; for wayland-scanner
+                              (list pkg-config-for-build wayland)
+                              '())
+                          (list pkg-config scdoc)))
    (inputs (list pixman libpng libjpeg-turbo wayland wayland-protocols))
    (home-page "https://sr.ht/~emersion/grim/")
    (synopsis "Create screenshots from a Wayland compositor")