python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / vk-bootstrap / default.nix
blob8b7ce6cd930a26c002db3c933d7e782747b981bb
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , vulkan-headers
6 , glfw
7 , catch2
8 }:
10 stdenv.mkDerivation rec {
11   pname = "vk-bootstrap";
12   version = "0.5";
13   outputs = [ "out" "dev" ];
15   src = fetchFromGitHub {
16     owner = "charles-lunarg";
17     repo = "vk-bootstrap";
18     rev = "v${version}";
19     sha256 = "sha256-rKyfUWfRYiVNzLWh6y44ASHW4j+yabY0kZTdZi8j2Dc=";
20   };
22   postPatch = ''
23     # Upstream uses cmake FetchContent to resolve glfw and catch2
24     # needed for examples and tests
25     sed -iE 's=add_subdirectory(ext)==g' CMakeLists.txt
26     sed -iE 's=Catch2==g' tests/CMakeLists.txt
27   '';
29   nativeBuildInputs = [ cmake ];
30   buildInputs = [ vulkan-headers glfw catch2 ];
32   cmakeFlags = [
33     "-DVK_BOOTSTRAP_VULKAN_HEADER_DIR=${vulkan-headers}/include"
34   ];
36   meta = with lib; {
37     description = "Vulkan Bootstrapping Library";
38     license = licenses.mit;
39     homepage = "https://github.com/charles-lunarg/vk-bootstrap";
40     maintainers = with maintainers; [ shamilton ];
41     platforms = platforms.all;
42   };