Merge pull request #82425 from Ralith/vulkan-loader-pkgconfig

vulkan-loader: use vulkan-headers include path in pkgconfig file
This commit is contained in:
Michele Guerini Rocco 2020-03-22 18:17:57 +01:00 committed by GitHub
commit 58858fab89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake python3 xlibsWrapper libxcb libXrandr libXext wayland ];
enableParallelBuilding = true;
preConfigure = ''
substituteInPlace loader/vulkan.pc.in --replace 'includedir=''${prefix}/include' 'includedir=${vulkan-headers}/include'
'';
cmakeFlags = [
"-DSYSCONFDIR=${addOpenGLRunpath.driverLink}/share"
"-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}"