···2256022560 # Default libGLU
2256122561 libGLU = mesa_glu;
22562225622256322563- # When a new patch is out, add a new mesa attribute with the exact patch version
2256422564- # Remove old mesa attributes when they're unused.
2256522565- # Try to keep the previous version around for a bit in case there are new bugs.
2256622566- mesa_22_3_7 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.7.nix {
2256322563+ # Keep Mesa 22.3 for now because 23.0 does not build on Darwin.
2256422564+ # FIXME: remove, also investigate why we even need Mesa on Darwin.
2256522565+ mesa_22_3 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/22.3.nix {
2256722566 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
2256822567 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
2256922568 };
2257022570- mesa_23_0_1 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.1.nix {
2256922569+ mesa_23_0 = darwin.apple_sdk_11_0.callPackage ../development/libraries/mesa/23.0.nix {
2257122570 inherit (darwin.apple_sdk_11_0.frameworks) OpenGL;
2257222571 inherit (darwin.apple_sdk_11_0.libs) Xplugin;
2257322572 };
2257422574- # Bump this immediately on patches; wait a bit for minor versions
2257522575- mesa_22 = mesa_22_3_7;
2257622576- mesa_23 = mesa_23_0_1;
2257722577- # Bump on staging only, tonnes of packages depend on it.
2257822578- # See https://github.com/NixOS/nixpkgs/issues/218232
2257922579- # Major versions should be bumped when they have proven to be reasonably stable
2258022580- # FIXME: split up libgbm properly
2258122581- # darwin: deferred until stabilized; e.g. see around:
2258222582- # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21859
2258322583- mesa = if stdenv.isDarwin then mesa_22_3_7 else mesa_23_0_1;
2257322573+ mesa = if stdenv.isDarwin then mesa_22_3 else mesa_23_0;
22584225742258522575 mesa_glu = callPackage ../development/libraries/mesa-glu {
2258622576 inherit (darwin.apple_sdk.frameworks) ApplicationServices;