From d7c5456a394563b953518c7248745d0db9bcfc6c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 15 Oct 2023 13:08:18 +0300 Subject: gnu: sway: Fix cross-compiling. * gnu/packages/wm.scm (sway)[native-inputs]: When cross-compiling add pkg-config-for-build, wayland. --- gnu/packages/wm.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/packages/wm.scm') diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index cdc8b57030..477d7bb8c8 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -1723,7 +1723,11 @@ modules for building a Wayland compositor.") wayland wlroots)) (native-inputs - (list linux-pam mesa pkg-config scdoc wayland-protocols)) + (cons* linux-pam mesa pkg-config scdoc wayland-protocols + (if (%current-target-system) + (list pkg-config-for-build + wayland) + '()))) (home-page "https://github.com/swaywm/sway") (synopsis "Wayland compositor compatible with i3") (description "Sway is a i3-compatible Wayland compositor.") -- cgit v1.2.3