8 stdenvNoCC.mkDerivation (finalAttrs: {
9 pname = "vulkan-memory-allocator";
12 src = fetchFromGitHub {
13 owner = "GPUOpen-LibrariesAndSDKs";
14 repo = "VulkanMemoryAllocator";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-j0Z9OEwQx3RB2cni9eK3gYfwkhOc2ST213b6VseaVzg=";
20 # Allows specifying version constraints on the CMake module
21 # Remove when version > 3.1.0
23 name = "0001-vulkan-memory-allocator-add-cmake-package-version-file.patch";
24 url = "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/commit/257138b8f5686ae84491a3df9f90a77d5660c3bd.patch";
25 hash = "sha256-qbQhIJho/WQqzAwB2zzWgGKx4QK9zKmbaGisbNOV8mg=";
29 # A compiler is only required for the samples. This lets us use stdenvNoCC.
31 substituteInPlace CMakeLists.txt \
32 --replace-warn 'LANGUAGES CXX' 'LANGUAGES NONE'
42 description = "Easy to integrate Vulkan memory allocation library";
43 homepage = "https://gpuopen.com/vulkan-memory-allocator/";
44 changelog = "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/blob/${finalAttrs.src.rev}/CHANGELOG.md";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fgaz ];
47 mainProgram = "vulkan-memory-allocator";
48 platforms = lib.platforms.unix ++ lib.platforms.windows;