Merge pull request #221723 from Cynerd/mesa-demos-crossbuild

mesa-demos: fix cross compilation
This commit is contained in:
Atemu 2023-04-17 11:27:06 +02:00 committed by GitHub
commit 269c677b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
freeglut glew libX11 libXext libGL libGLU mesa wayland
wayland-protocols vulkan-loader libxkbcommon libdecor glslang
] ++ 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"}"