[Backport release-26.05] mesa: fix timeout on Darwin (#527517)

This commit is contained in:
K900 2026-06-03 11:24:01 +00:00 committed by GitHub
commit 2b7bcaaeaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,6 +59,13 @@ stdenv.mkDerivation {
./opencl.patch
];
postPatch = ''
# Darwin only installs `swrast_dri.so`. It is symlinked to `libdril_dri.dylib`, but the script never terminates
# checking for `swrast_dri.dylib`, which isnt what will be created.
substituteInPlace bin/install_megadrivers.py \
--replace-fail " while ext != '.' + args.libname_suffix" " while ext != '.so'"
'';
outputs = [
"out"
"dev"