diff --git a/pkgs/development/libraries/wayland/default.nix b/pkgs/development/libraries/wayland/default.nix index bb764d641436..8d229678a3c8 100644 --- a/pkgs/development/libraries/wayland/default.nix +++ b/pkgs/development/libraries/wayland/default.nix @@ -8,7 +8,7 @@ , wayland-scanner , expat , libxml2 -, withLibraries ? stdenv.isLinux +, withLibraries ? true , libffi , withDocumentation ? withLibraries && stdenv.hostPlatform == stdenv.buildPlatform , graphviz-nox diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5c9a3a7787df..c1d9915d0a6e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9018,7 +9018,17 @@ with pkgs; memtester = callPackage ../tools/system/memtester { }; - mesa-demos = callPackage ../tools/graphics/mesa-demos { }; + mesa-demos = + let + wayland' = wayland.override { withLibraries = stdenv.isLinux; }; + in + callPackage ../tools/graphics/mesa-demos { + wayland = wayland'; + wayland-protocols = wayland-protocols.override { + wayland = wayland'; + wayland-scanner = wayland'.bin; + }; + }; mhonarc = perlPackages.MHonArc;