git.iko.soy/typeable/nixpkgs
on master help sign in
mesa: point pkgconfig at $drivers
commit722dd05b140504eb2727e55054485b4f003872d0 authorMichishige Kaito <me@mkaito.com> dateSun 24 Jun 2018, 15:10 (8 years ago) parentdf587c7
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)