From b5533631cebeee8173ba113acbe641866ca1adab Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Thu, 12 Mar 2020 10:31:51 -0700 Subject: [PATCH] vulkan-loader: use vulkan-headers include path in pkgconfig file --- pkgs/development/libraries/vulkan-loader/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/vulkan-loader/default.nix b/pkgs/development/libraries/vulkan-loader/default.nix index c12c3ca640ba..b1f2663e7f8f 100644 --- a/pkgs/development/libraries/vulkan-loader/default.nix +++ b/pkgs/development/libraries/vulkan-loader/default.nix @@ -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}"