mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
vulkan-memory-allocator: init at 3.1.0
This commit is contained in:
parent
0f9b02a8ab
commit
37b4e16085
39
pkgs/by-name/vu/vulkan-memory-allocator/package.nix
Normal file
39
pkgs/by-name/vu/vulkan-memory-allocator/package.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "vulkan-memory-allocator";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GPUOpen-LibrariesAndSDKs";
|
||||
repo = "VulkanMemoryAllocator";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-j0Z9OEwQx3RB2cni9eK3gYfwkhOc2ST213b6VseaVzg=";
|
||||
};
|
||||
|
||||
# A compiler is only required for the samples. This lets us use stdenvNoCC.
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-warn 'LANGUAGES CXX' 'LANGUAGES NONE'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = {
|
||||
description = "Easy to integrate Vulkan memory allocation library";
|
||||
homepage = "https://gpuopen.com/vulkan-memory-allocator/";
|
||||
changelog = "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fgaz ];
|
||||
mainProgram = "vulkan-memory-allocator";
|
||||
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user