···22560 # Default libGLU
22561 libGLU = mesa_glu;
2256222563- # When a new patch is out, add a new mesa attribute with the exact patch version
22564- # Remove old mesa attributes when they're unused.
22565- # Try to keep the previous version around for a bit in case there are new bugs.
22566- mesa_22_3_7 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.7.nix {
22567 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
22568 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
22569 };
22570- mesa_23_0_1 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.1.nix {
22571 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
22572 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
22573 };
22574- # Bump this immediately on patches; wait a bit for minor versions
22575- mesa_22 = mesa_22_3_7;
22576- mesa_23 = mesa_23_0_1;
22577- # Bump on staging only, tonnes of packages depend on it.
22578- # See https://github.com/NixOS/nixpkgs/issues/218232
22579- # Major versions should be bumped when they have proven to be reasonably stable
22580- # FIXME: split up libgbm properly
22581- # darwin: deferred until stabilized; e.g. see around:
22582- # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21859
22583- mesa = if stdenv.isDarwin then mesa_22_3_7 else mesa_23_0_1;
2258422585 mesa_glu = callPackage ../development/libraries/mesa-glu {
22586 inherit (darwin.apple_sdk.frameworks) ApplicationServices;
···22560 # Default libGLU
22561 libGLU = mesa_glu;
2256222563+ # Keep Mesa 22.3 for now because 23.0 does not build on Darwin.
22564+ # FIXME: remove, also investigate why we even need Mesa on Darwin.
22565+ mesa_22_3 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.nix {
022566 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
22567 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
22568 };
22569+ mesa_23_0 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.nix {
22570 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
22571 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
22572 };
22573+ mesa = if stdenv.isDarwin then mesa_22_3 else mesa_23_0;
0000000002257422575 mesa_glu = callPackage ../development/libraries/mesa-glu {
22576 inherit (darwin.apple_sdk.frameworks) ApplicationServices;