Merge pull request #229273 from K900/more-vulkan-updates

More vulkan updates
This commit is contained in:
K900 2023-05-01 17:15:08 +03:00 committed by GitHub
commit 84a9679726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 19 deletions

View file

@ -1,23 +1,29 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update
#!nix-shell -i bash -p nix-update
set -euf -o pipefail
NEW_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.json | jq -r '.linux')
VULKAN_SDK_PACKAGES=(
V_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
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

View file

@ -23,7 +23,7 @@ let
in
stdenv.mkDerivation rec {
pname = "vulkan-validation-layers";
version = "1.3.243.0";
version = "1.3.249";
# If we were to use "dev" here instead of headers, the setupHook would be
# placed in that output instead of "out".
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-ValidationLayers";
rev = "sdk-${version}";
rev = "v${version}";
hash = "sha256-viVceH8qFz6Cl/RlMMWZnMIdzULELlnIvtPZ87ySs2M=";
};

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "vulkan-extension-layer";
version = "1.3.243.0";
version = "1.3.248";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-ExtensionLayer";
rev = "sdk-${version}";
hash = "sha256-hxlfSnH4M3ui5nW0Ll5rhto0DnJIHW0tJzS+p4KV0R4=";
rev = "v${version}";
hash = "sha256-CuwYpB8HX8pnR+ElkQfckpKDLKyZIzqm4F9kluM1cKo=";
};
nativeBuildInputs = [ cmake jq ];
@ -40,6 +40,5 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = licenses.asl20;
maintainers = with maintainers; [ expipiplus1 ];
broken = (version != vulkan-headers.version);
};
}

View file

@ -21,13 +21,13 @@
stdenv.mkDerivation rec {
pname = "vulkan-tools";
version = "1.3.243.0";
version = "1.3.249";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "sdk-${version}";
hash = "sha256-8XJON+iBEPRtuQWf1bPXyOJHRkuRLnLXgTIjk7gYQwE=";
rev = "v${version}";
hash = "sha256-+d0Yp+e/wzlRmUIs4SffiphkqmM/7avJrt3JNOgO19I=";
};
nativeBuildInputs = [
@ -103,6 +103,5 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
license = licenses.asl20;
maintainers = [ maintainers.ralith ];
broken = (version != vulkan-headers.version);
};
}