vk-bootstrap: init at 0.5
This commit is contained in:
parent
7945cf18f6
commit
ac66a6c23a
2 changed files with 44 additions and 0 deletions
42
pkgs/development/libraries/vk-bootstrap/default.nix
Normal file
42
pkgs/development/libraries/vk-bootstrap/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, vulkan-headers
|
||||
, glfw
|
||||
, catch2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vk-bootstrap";
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "charles-lunarg";
|
||||
repo = "vk-bootstrap";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-rKyfUWfRYiVNzLWh6y44ASHW4j+yabY0kZTdZi8j2Dc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream uses cmake FetchContent to resolve glfw and catch2
|
||||
# needed for examples and tests
|
||||
sed -iE 's=add_subdirectory(ext)==g' CMakeLists.txt
|
||||
sed -iE 's=Catch2==g' tests/CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ vulkan-headers glfw catch2 ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DVK_BOOTSTRAP_VULKAN_HEADER_DIR=${vulkan-headers}/include"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Vulkan Bootstrapping Iibrary";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/charles-lunarg/vk-bootstrap";
|
||||
maintainers = with maintainers; [ shamilton ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -11618,6 +11618,8 @@ with pkgs;
|
|||
|
||||
vdmfec = callPackage ../applications/backup/vdmfec {};
|
||||
|
||||
vk-bootstrap = callPackage ../development/libraries/vk-bootstrap { };
|
||||
|
||||
vk-cli = callPackage ../applications/networking/instant-messengers/vk-cli { };
|
||||
|
||||
vk-messenger = callPackage ../applications/networking/instant-messengers/vk-messenger {};
|
||||
|
|
Loading…
Reference in a new issue