mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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:
parent
518d5f0941
commit
be06a2b91c
@ -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"}"
|
||||
|
Loading…
Reference in New Issue
Block a user