mesa: fix timeout on Darwin

(cherry picked from commit a8778fc470)
This commit is contained in:
Randy Eckenrode 2025-11-17 20:25:22 -05:00 committed by github-actions[bot]
commit 668a3af691

View file

@ -59,6 +59,17 @@ 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'"
# Use `st_mtimespec` on Darwin instead of `st_mtim`.
substituteInPlace src/gallium/drivers/llvmpipe/lp_context.c \
--replace-fail 'st_mtim.' 'st_mtimespec.'
'';
outputs = [
"out"
"dev"