vulkan-memory-allocator: add nix-update-script (#376854)
This commit is contained in:
@@ -2,31 +2,21 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "vulkan-memory-allocator";
|
||||
version = "3.1.0";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GPUOpen-LibrariesAndSDKs";
|
||||
repo = "VulkanMemoryAllocator";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-j0Z9OEwQx3RB2cni9eK3gYfwkhOc2ST213b6VseaVzg=";
|
||||
hash = "sha256-f9TmMUbWqS00Ib3gpPQpd/0D02nDBUgYvPJ8rSFizFY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Allows specifying version constraints on the CMake module
|
||||
# Remove when version > 3.1.0
|
||||
(fetchpatch {
|
||||
name = "0001-vulkan-memory-allocator-add-cmake-package-version-file.patch";
|
||||
url = "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/commit/257138b8f5686ae84491a3df9f90a77d5660c3bd.patch";
|
||||
hash = "sha256-qbQhIJho/WQqzAwB2zzWgGKx4QK9zKmbaGisbNOV8mg=";
|
||||
})
|
||||
];
|
||||
|
||||
# A compiler is only required for the samples. This lets us use stdenvNoCC.
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
@@ -39,6 +29,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Easy to integrate Vulkan memory allocation library";
|
||||
homepage = "https://gpuopen.com/vulkan-memory-allocator/";
|
||||
|
||||
Reference in New Issue
Block a user