Unverified Commit 555b7a81 authored by Marcin Serwin's avatar Marcin Serwin
Browse files

vulkan-memory-allocator: 3.1.0 -> 3.2.0

parent 3a228057
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -2,31 +2,20 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  fetchpatch,
  cmake,
}:

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 \