···205 for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
206 substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
207 done
00000208 '' + optionalString (vulkanDrivers != []) ''
209 # Update search path used by Vulkan (it's pointing to $out but
210 # drivers are in $drivers)
···205 for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
206 substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
207 done
208+209+ # Update search path used by pkg-config
210+ for pc in $dev/lib/pkgconfig/*.pc; do
211+ substituteInPlace "$pc" --replace $out $drivers
212+ done
213 '' + optionalString (vulkanDrivers != []) ''
214 # Update search path used by Vulkan (it's pointing to $out but
215 # drivers are in $drivers)