gnu: libinput-minimal: Fix cross-compiling.

* gnu/packages/freedesktop.scm (libinput)[native-inputs]: When
cross-compiling add pkg-config-for-build.
[inputs]: When cross-compiling add check.
This commit is contained in:
Efraim Flashner 2023-10-15 12:58:22 +03:00
parent d2923babf3
commit 7744119c3e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -577,14 +577,20 @@ (define-public libinput
;; Meson target anyway.
#:build-type "release"))
(native-inputs
(list check pkg-config))
(append (list check pkg-config)
(if (%current-target-system)
(list pkg-config-for-build)
'())))
(inputs
(list cairo
glib
gtk+
libevdev
libwacom
mtdev))
(append (list cairo
glib
gtk+
libevdev
libwacom
mtdev)
(if (%current-target-system)
(list check)
'())))
(propagated-inputs
`(;; libinput.h requires <libudev.h>, so propagate it.
("udev" ,eudev)))