nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 ninja, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "vulkan-headers"; 10 version = "1.4.335.0"; 11 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 15 nativeBuildInputs = [ 16 cmake 17 ninja 18 ]; 19 20 # TODO: investigate why <algorithm> isn't found 21 cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DVULKAN_HEADERS_ENABLE_MODULE=OFF" ]; 22 23 src = fetchFromGitHub { 24 owner = "KhronosGroup"; 25 repo = "Vulkan-Headers"; 26 rev = "vulkan-sdk-${finalAttrs.version}"; 27 hash = "sha256-DIePLzDoImnaso0WYUv819wSDeA7Zy1I/tYAbsALXKg="; 28 }; 29 30 passthru.updateScript = ./update.sh; 31 32 meta = { 33 description = "Vulkan Header files and API registry"; 34 homepage = "https://www.lunarg.com"; 35 platforms = lib.platforms.unix ++ lib.platforms.windows; 36 license = lib.licenses.asl20; 37 maintainers = [ lib.maintainers.ralith ]; 38 }; 39})