···20202121 # We don't use the versions from common.nix, because libgbm is a world rebuild,
2222 # so the updates need to happen separately on staging.
2323- version = "24.3.4";
2323+ version = "25.0.1";
24242525 src = fetchFromGitLab {
2626 domain = "gitlab.freedesktop.org";
2727 owner = "mesa";
2828 repo = "mesa";
2929 rev = "mesa-${version}";
3030- hash = "sha256-1RUHbTgcCxdDrWjqB0EG4Ny/nwdjQHHpyPauiW/yogU=";
3030+ hash = "sha256-9D4d7EEdZysvXDRcmpbyt85Lo64sldNRomp6/HUVORo=";
3131 };
3232+3333+ # Install gbm_backend_abi.h header - this is to simplify future iteration
3434+ # on building Mesa and friends with system libgbm.
3535+ # See also:
3636+ # - https://github.com/NixOS/nixpkgs/pull/387292
3737+ # - https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33890
3838+ patches = [ ./gbm-header.patch ];
32393340 mesonAutoFeatures = "disabled";
3441