aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-15 13:08:18 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-15 13:08:18 +0300
commitd7c5456a394563b953518c7248745d0db9bcfc6c (patch)
tree2a3265f89f46b49ae7efc3168ccbef64fe5c3394
parent76b706c71ce1e1c2a140856a80cdd60bd8d4b0fd (diff)
downloadguix-d7c5456a394563b953518c7248745d0db9bcfc6c.tar.gz
guix-d7c5456a394563b953518c7248745d0db9bcfc6c.zip
gnu: sway: Fix cross-compiling.
* gnu/packages/wm.scm (sway)[native-inputs]: When cross-compiling add pkg-config-for-build, wayland.
-rw-r--r--gnu/packages/wm.scm6
1 files changed, 5 insertions, 1 deletions
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.")