2024-10-11 05:15:48 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ninja }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vulkan-headers";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.290.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
# Adding `ninja` here to enable Ninja backend. Otherwise on gcc-14 or
|
|
|
|
# later the build fails as:
|
|
|
|
# modules are not supported by this generator: Unix Makefiles
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# TODO: investigate why <algorithm> isn't found
|
2024-09-26 11:04:55 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DVULKAN_HEADERS_ENABLE_MODULE=OFF" ];
|
2024-09-19 14:19:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "Vulkan-Headers";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "vulkan-sdk-${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-goxA3Wg3u5hNCz54tWMJnFaS0JGVjphy14Ng/sAK/EM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Vulkan Header files and API registry";
|
|
|
|
homepage = "https://www.lunarg.com";
|
2022-12-28 21:21:41 +00:00
|
|
|
platforms = platforms.unix ++ platforms.windows;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ralith ];
|
|
|
|
};
|
|
|
|
}
|