vulkan-loader: fix cross-compilation

See issue https://github.com/KhronosGroup/Vulkan-Loader/issues/881
This commit is contained in:
Rick van Schijndel 2022-05-03 21:23:07 +02:00
parent ab0bd3aff9
commit f7269f24d5

View File

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_INSTALL_INCLUDEDIR=${vulkan-headers}/include" ]
++ lib.optional stdenv.isDarwin "-DSYSCONFDIR=${moltenvk}/share"
++ lib.optional stdenv.isLinux "-DSYSCONFDIR=${addOpenGLRunpath.driverLink}/share";
++ lib.optional stdenv.isLinux "-DSYSCONFDIR=${addOpenGLRunpath.driverLink}/share"
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DUSE_GAS=OFF";
outputs = [ "out" "dev" ];