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>
This commit is contained in:
Zheng Junjie 2023-12-30 19:07:20 +08:00 committed by Mathieu Othacehe
parent 2d38579e01
commit ae63bb5e7d
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -2236,7 +2236,11 @@ (define-public grim
(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")