mesa-demos: fix cross compilation

The build requires also native binaries to be build with dependency on
wayland libraries. Those libraries are expected to be located using
pkg-config but it required the one that targets build and not host
platform.
This commit is contained in:
Karel Kočí 2023-03-17 22:02:53 +01:00
parent 518d5f0941
commit be06a2b91c
No known key found for this signature in database
GPG Key ID: D83BD732AC2BD828

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
freeglut glew libX11 libXext libGL libGLU mesa wayland
wayland-protocols
] ++ lib.optional (mesa ? osmesa) mesa.osmesa ;
nativeBuildInputs = [ meson ninja pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config wayland ];
mesonFlags = [
"-Degl=${if stdenv.isDarwin then "disabled" else "auto"}"