23 vulkan-utility-libraries,
28 stdenv.mkDerivation rec {
29 pname = "vulkan-tools-lunarg";
30 version = "1.3.296.0";
32 src = fetchFromGitHub {
35 rev = "vulkan-sdk-${version}";
36 hash = "sha256-RaL7sqy5Rc8syPoM3SedZ6UilV9JUAA96JZh5/gIfPU=";
45 libsForQt5.qt5.wrapQtAppsHook
59 vulkan-utility-libraries
64 libsForQt5.qt5.qtwayland
68 "-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}"
72 patchShebangs scripts/*
73 substituteInPlace via/CMakeLists.txt --replace "jsoncpp_static" "jsoncpp"
76 # Include absolute paths to layer libraries in their associated
77 # layer definition json files.
79 for f in "$out"/etc/vulkan/explicit_layer.d/*.json "$out"/etc/vulkan/implicit_layer.d/*.json; do
80 jq <"$f" >tmp.json ".layer.library_path = \"$out/lib/\" + .layer.library_path"
85 # Help vulkan-loader find the validation layers
86 setupHook = writeText "setup-hook" ''
87 export XDG_CONFIG_DIRS=@out@/etc''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}}
91 description = "LunarG Vulkan Tools and Utilities";
93 Tools to aid in Vulkan development including useful layers, trace and
96 homepage = "https://github.com/LunarG/VulkanTools";
97 platforms = platforms.linux;
98 license = licenses.asl20;