depot/third_party/nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

30 lines
606 B
Bash
Executable file

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