From be06a2b91ce327c50757b4d4b08129ffc168a80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 17 Mar 2023 22:02:53 +0100 Subject: [PATCH] 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. --- pkgs/tools/graphics/mesa-demos/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/mesa-demos/default.nix b/pkgs/tools/graphics/mesa-demos/default.nix index efc58c370736..a8fccf5c435b 100644 --- a/pkgs/tools/graphics/mesa-demos/default.nix +++ b/pkgs/tools/graphics/mesa-demos/default.nix @@ -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"}"