summary refs log tree commit diff
path: root/pkgs/development/libraries/vulkan-headers/update.sh
blob: 9857af699e2fbdca56cd987fdedf39ab4e66ed25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update

set -euf -o pipefail

NEW_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.json | jq -r '.linux')

VULKAN_SDK_PACKAGES=(
    "vulkan-headers"
    "spirv-headers"
    "glslang"
    "vulkan-loader"
    "spirv-tools"
    "spirv-cross"
    "vulkan-validation-layers"
    "vulkan-tools"
    "vulkan-tools-lunarg"
    "vulkan-extension-layer"
)

for P in "${VULKAN_SDK_PACKAGES[@]}"; do
    nix-update "$P" --version "$NEW_VERSION" --commit
done