From b9c2759bb5eda150eeb9a4bdff209144e41fc3a4 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 2 Jul 2026 20:50:34 -0400 Subject: [PATCH] mesa: fix build on Darwin Mesa 26.1.4 includes commit[1] which makes installed Gallium driver names use libname_suffix. Remove obsolete workaround. [1]: https://gitlab.freedesktop.org/mesa/mesa/-/commit/ad9e702a79e6c4603004eb0fe378abac4274777d --- pkgs/development/libraries/mesa/darwin.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkgs/development/libraries/mesa/darwin.nix b/pkgs/development/libraries/mesa/darwin.nix index d683cc3bfe89..fb64f9e70d60 100644 --- a/pkgs/development/libraries/mesa/darwin.nix +++ b/pkgs/development/libraries/mesa/darwin.nix @@ -59,13 +59,6 @@ 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 isn’t what will be created. - substituteInPlace bin/install_megadrivers.py \ - --replace-fail " while ext != '.' + args.libname_suffix" " while ext != '.so'" - ''; - outputs = [ "out" "dev"