2023-04-12 12:48:02 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
2023-05-24 13:37:59 +00:00
|
|
|
#!nix-shell -i bash -p nix-update
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
set -euf -o pipefail
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
V_PACKAGES=(
|
2023-04-12 12:48:02 +00:00
|
|
|
"vulkan-headers"
|
|
|
|
"vulkan-loader"
|
|
|
|
"spirv-tools"
|
|
|
|
"vulkan-validation-layers"
|
|
|
|
"vulkan-tools"
|
|
|
|
"vulkan-tools-lunarg"
|
|
|
|
"vulkan-extension-layer"
|
|
|
|
)
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
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
|
2023-04-12 12:48:02 +00:00
|
|
|
done
|