8 stdenv.mkDerivation rec {
9 pname = "vulkan-headers";
10 version = "1.3.296.0";
12 # Adding `ninja` here to enable Ninja backend. Otherwise on gcc-14 or
13 # later the build fails as:
14 # modules are not supported by this generator: Unix Makefiles
20 # TODO: investigate why <algorithm> isn't found
21 cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DVULKAN_HEADERS_ENABLE_MODULE=OFF" ];
23 src = fetchFromGitHub {
24 owner = "KhronosGroup";
25 repo = "Vulkan-Headers";
26 rev = "vulkan-sdk-${version}";
27 hash = "sha256-u/40rOQyYbQza0aYbechLdKhYM1DgoMKkxauW2zZ/w0=";
30 passthru.updateScript = ./update.sh;
33 description = "Vulkan Header files and API registry";
34 homepage = "https://www.lunarg.com";
35 platforms = platforms.unix ++ platforms.windows;
36 license = licenses.asl20;
37 maintainers = [ maintainers.ralith ];