22 , vulkan-utility-libraries
27 stdenv.mkDerivation rec {
28 pname = "vulkan-tools-lunarg";
29 version = "1.3.290.0";
31 src = fetchFromGitHub {
34 rev = "vulkan-sdk-${version}";
35 hash = "sha256-APJRiO5xNHml3k9goFQKwmxb3BXDN7tmvcs/oNCVU58=";
38 nativeBuildInputs = [ cmake python3 jq which pkg-config libsForQt5.qt5.wrapQtAppsHook ];
51 vulkan-utility-libraries
56 libsForQt5.qt5.qtwayland
60 "-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}"
64 patchShebangs scripts/*
65 substituteInPlace via/CMakeLists.txt --replace "jsoncpp_static" "jsoncpp"
68 # Include absolute paths to layer libraries in their associated
69 # layer definition json files.
71 for f in "$out"/etc/vulkan/explicit_layer.d/*.json "$out"/etc/vulkan/implicit_layer.d/*.json; do
72 jq <"$f" >tmp.json ".layer.library_path = \"$out/lib/\" + .layer.library_path"
77 # Help vulkan-loader find the validation layers
78 setupHook = writeText "setup-hook" ''
79 export XDG_CONFIG_DIRS=@out@/etc''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}}
83 description = "LunarG Vulkan Tools and Utilities";
85 Tools to aid in Vulkan development including useful layers, trace and
88 homepage = "https://github.com/LunarG/VulkanTools";
89 platforms = platforms.linux;
90 license = licenses.asl20;
91 maintainers = [ maintainers.expipiplus1 ];