depot/third_party/nixpkgs/pkgs/development/libraries/vulkan-headers/update.sh
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

29 lines
575 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"
"spirv-tools"
"vulkan-validation-layers"
"vulkan-tools"
"vulkan-tools-lunarg"
"vulkan-extension-layer"
)
SDK_PACKAGES=(
"spirv-headers"
"spirv-cross"
)
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