mesa: disable withValgrind if valgrind-light is marked as broken

`valgrind` derivation is currently marked as broken in either:
- `stdenv.isDarwin`
- `stdenv.hostPlatform.isStatic`

Instead of adding those two checks in the `mesa` derivation, we can just
check the current `valgrind-light.meta.broken` attribute.

+1 -1
+1 -1
pkgs/development/libraries/mesa/default.nix
··· 9 9 , vulkanDrivers ? ["auto"] 10 10 , eglPlatforms ? [ "x11" ] ++ lib.optionals stdenv.isLinux [ "wayland" ] 11 11 , OpenGL, Xplugin 12 - , withValgrind ? !stdenv.isDarwin && lib.meta.availableOn stdenv.hostPlatform valgrind-light, valgrind-light 12 + , withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind-light && !valgrind-light.meta.broken, valgrind-light 13 13 , enableGalliumNine ? stdenv.isLinux 14 14 , enableOSMesa ? stdenv.isLinux 15 15 , enableOpenCL ? stdenv.isLinux && stdenv.isx86_64