mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
19ca45e39f
Only the loader and the headers need to stay in sync, everything else is fine being mismatched, and this way we're not stuck to the LunarG release cycles.
30 lines
575 B
Bash
Executable File
30 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
|