···205205 for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
206206 substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
207207 done
208208+209209+ # Update search path used by pkg-config
210210+ for pc in $dev/lib/pkgconfig/*.pc; do
211211+ substituteInPlace "$pc" --replace $out $drivers
212212+ done
208213 '' + optionalString (vulkanDrivers != []) ''
209214 # Update search path used by Vulkan (it's pointing to $out but
210215 # drivers are in $drivers)