push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
}:
stdenv.mkDerivation rec {
pname = "vulkan-headers";
version = "1.4.321.0";
# Adding `ninja` here to enable Ninja backend. Otherwise on gcc-14 or
# later the build fails as:
# modules are not supported by this generator: Unix Makefiles
nativeBuildInputs = [
cmake
ninja
];
# TODO: investigate why <algorithm> isn't found
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DVULKAN_HEADERS_ENABLE_MODULE=OFF" ];
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Headers";
rev = "vulkan-sdk-${version}";
hash = "sha256-Yznjiiu/EEW7B37hbO0aw8Lvc6aVxOy7J/zSwmGxVc0=";
};
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Vulkan Header files and API registry";
homepage = "https://www.lunarg.com";
platforms = platforms.unix ++ platforms.windows;
license = licenses.asl20;
maintainers = [ maintainers.ralith ];
};
}

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update
set -euf -o pipefail
SDK_PACKAGES=(
"vulkan-headers"
"vulkan-loader"
"vulkan-validation-layers"
"vulkan-tools"
"vulkan-tools-lunarg"
"vulkan-extension-layer"
"vulkan-utility-libraries"
"vulkan-volk"
"spirv-headers"
"spirv-cross"
"spirv-tools"
)
nix-update glslang --version-regex '(\d+\.\d+\.\d+)' --commit
for P in "${SDK_PACKAGES[@]}"; do
nix-update "$P" --version-regex "(?:vulkan-sdk-)(.*)" --commit
done