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:
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