Files
nixpkgs/pkgs/by-name/vk/vk-bootstrap/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
vulkan-headers,
glfw,
catch2,
}:
stdenv.mkDerivation rec {
pname = "vk-bootstrap";
version = "0.7";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "charles-lunarg";
repo = "vk-bootstrap";
rev = "v${version}";
hash = "sha256-X3ANqfplrCF1R494+H5/plcwMH7rbW6zpLA4MZrYaoE=";
};
postPatch = ''
# Upstream uses cmake FetchContent to resolve glfw and catch2
# needed for examples and tests
sed -i 's=add_subdirectory(ext)==g' CMakeLists.txt
sed -i '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 Library";
license = licenses.mit;
homepage = "https://github.com/charles-lunarg/vk-bootstrap";
maintainers = with maintainers; [ shamilton ];
platforms = platforms.all;
};
}