3
0
Fork 0
forked from mirrors/nixpkgs

vulkan-validation-layers: Add output for generated include files

These are dependencies of other layers such as the layers in LunarG Vulkan Tools
This commit is contained in:
Joe Hermaszewski 2020-11-16 15:46:03 +08:00
parent e3cf6e12bc
commit 1594881eb6

View file

@ -51,6 +51,11 @@ stdenv.mkDerivation rec {
pname = "vulkan-validation-layers";
version = "1.2.141.0";
# If we were to use "dev" here instead of headers, the setupHook would be
# placed in that output instead of "out".
outputs = ["out" "headers"];
outputInclude = "headers";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-ValidationLayers";
@ -78,6 +83,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DGLSLANG_INSTALL_DIR=${localGlslang}"
"-DBUILD_LAYER_SUPPORT_FILES=ON"
];
# Help vulkan-loader find the validation layers