swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 202 forks source link

wayland-scanner: use native version to support cross-compilation #235

Closed Mindavi closed 2 years ago

Mindavi commented 2 years ago

Cross-compilation support was broken in https://github.com/swaywm/swaylock/commit/55c018a350d52efe7d0db168d15636b900dd9ce4 because wayland-scanner from the host system is used with that change. This patch changes it back to use wayland-scanner from the build system. For normal (non-cross) compilation this shouldn't change anything.

Meson also uses the build machine wayland-scanner binary:

I already tried this out on the latest version that's in nixpkgs and that fixes cross-compilation for me: https://github.com/mindavi/nixpkgs/commit/fa197c2ef53134017be48882987146bacbf6512c