git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #42529 from mkaito/mesa-pkgconfig

mesa: point pkgconfig at $drivers

commit4bbca076ea77dff191e9b9a14e487f5ae579d776 authorMatthew Bauer <mjbauer95@gmail.com> dateThu 5 Jul 2018, 22:17 (8 years ago) parent7f50e0a722dd05
1 file changed+5
pkgs/development/libraries/mesa/default.nix+5
pkgs/development/libraries/mesa/default.nix+5
@@ -205,6 +205,11 @@ let self = stdenv.mkDerivation {
205205 for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
206206 substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
207207 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
208213 '' + optionalString (vulkanDrivers != []) ''
209214 # Update search path used by Vulkan (it's pointing to $out but
210215 # drivers are in $drivers)