19 vulkan-utility-libraries,
24 robin-hood-hashing = callPackage ./robin-hood-hashing.nix { };
26 stdenv.mkDerivation rec {
27 pname = "vulkan-validation-layers";
28 version = "1.3.296.0";
30 src = fetchFromGitHub {
31 owner = "KhronosGroup";
32 repo = "Vulkan-ValidationLayers";
33 rev = "vulkan-sdk-${version}";
34 hash = "sha256-H5AG+PXM3IdCfDqHMdaunRUWRm8QgdS6ZbZLMaOOALk=";
57 vulkan-utility-libraries
62 "-DBUILD_LAYER_SUPPORT_FILES=ON"
63 # Hide dev warnings that are useless for packaging
67 # Tests require access to vulkan-compatible GPU, which isn't
68 # available in Nix sandbox. Fails with VK_ERROR_INCOMPATIBLE_DRIVER.
71 separateDebugInfo = true;
73 # Include absolute paths to layer libraries in their associated
74 # layer definition json files.
76 for f in "$out"/share/vulkan/explicit_layer.d/*.json "$out"/share/vulkan/implicit_layer.d/*.json; do
77 jq <"$f" >tmp.json ".layer.library_path = \"$out/lib/\" + .layer.library_path"
83 description = "Official Khronos Vulkan validation layers";
84 homepage = "https://github.com/KhronosGroup/Vulkan-ValidationLayers";
85 platforms = platforms.linux;
86 license = licenses.asl20;
87 maintainers = [ maintainers.ralith ];