Skip to content

Commit

Permalink
Vulkan 1.4.304 (NixOS#373969)
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 authored Jan 15, 2025
2 parents fb58f57 + 872d830 commit 8bf44fb
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 25 deletions.
4 changes: 2 additions & 2 deletions pkgs/by-name/gl/glslang/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
}:
stdenv.mkDerivation rec {
pname = "glslang";
version = "15.0.0";
version = "15.1.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glslang";
rev = version;
hash = "sha256-QXNecJ6SDeWpRjzHRTdPJHob1H3q2HZmWuL2zBt2Tlw=";
hash = "sha256-E1Zenf7XSGoozx4hxdOlMu+XZ6mJROSu7jIVYPWe3go=";
};

outputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/sp/spirv-cross/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "spirv-cross";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Cross";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-HKEh/UQzDQEOvJGHQlM6kEYVZrMaUBOcOGjjHWXSPoo=";
hash = "sha256-cpWvGCXS6VaS0YehnGYTaXydL6S4FU9HLPh0JZ+jfd8=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/sp/spirv-headers/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

stdenv.mkDerivation rec {
pname = "spirv-headers";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Headers";
rev = "vulkan-sdk-${version}";
hash = "sha256-o1yRTvP7a+XVwendTKBJKNnelVGWLD0gH258GGeUDhQ=";
hash = "sha256-MCQ+i9ymjnxRZP/Agk7rOGdHcB4p67jT4J4athWUlcI=";
};

nativeBuildInputs = [ cmake ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/sp/spirv-tools/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

stdenv.mkDerivation rec {
pname = "spirv-tools";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Tools";
rev = "vulkan-sdk-${version}";
hash = "sha256-ExseInoB/mMtVUOf0KMrQwDQ5UQdo3Ru7VnGMGPeXrk=";
hash = "sha256-alJ4X7qbTzsRTqRFdpjdsj0wERVb17czui2muEaKNyI=";
};

# The cmake options are sufficient for turning on static building, but not
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-extension-layer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

stdenv.mkDerivation rec {
pname = "vulkan-extension-layer";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-ExtensionLayer";
rev = "vulkan-sdk-${version}";
hash = "sha256-pBpHYxJq36FrHsvpaMJvX0IKTvAh0R86qR7/vn6EBCw=";
hash = "sha256-HdRbnXb9/YghxRJEg7Xx2q+YyiLAUBZ7lm0ibxVpbdA=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-loader/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "vulkan-loader";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Loader";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-6GHZUiYL3gDWN61SaLiD/3xXSoQb1rx6U5eu1cl8ZwM=";
hash = "sha256-qPknv8BvfJoewFfORXsFZlUnae36czHfOPXmtGccrOk=";
};

patches =
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-tools-lunarg/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

stdenv.mkDerivation rec {
pname = "vulkan-tools-lunarg";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "LunarG";
repo = "VulkanTools";
rev = "vulkan-sdk-${version}";
hash = "sha256-RaL7sqy5Rc8syPoM3SedZ6UilV9JUAA96JZh5/gIfPU=";
hash = "sha256-nudyg5YF2j4kv0fCx3vV/jGsYrEaTMf0xydvdHF6XCU=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-utility-libraries/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "vulkan-utility-libraries";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Utility-Libraries";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-WDRDpUOZN/akUA6gsJMlC2GKolVt3g1NerKqe7aLhek=";
hash = "sha256-d20PRTCCNWezwhTD3axiQeWvY9lqD/8XLGBlOFgNzFE=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-validation-layers/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ let
in
stdenv.mkDerivation rec {
pname = "vulkan-validation-layers";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-ValidationLayers";
rev = "vulkan-sdk-${version}";
hash = "sha256-H5AG+PXM3IdCfDqHMdaunRUWRm8QgdS6ZbZLMaOOALk=";
hash = "sha256-n7fbhi5NCQRsj/sAjLfaW6EBFBqGutN5Cnl/CtnnVPY=";
};

strictDeps = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vu/vulkan-volk/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "volk";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "zeux";
repo = "volk";
rev = "vulkan-sdk-${finalAttrs.version}";
hash = "sha256-faLszfOeFo5eAzwvnrAUDVAPCVt/F9xRUFGxC9TA8E8=";
hash = "sha256-+SLGRvCUKFntz60/xL/NjoFjvvATWMImR4CGnCHUj2o=";
};

nativeBuildInputs = [ cmake ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/vulkan-headers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}:
stdenv.mkDerivation rec {
pname = "vulkan-headers";
version = "1.3.296.0";
version = "1.4.304.0";

# Adding `ninja` here to enable Ninja backend. Otherwise on gcc-14 or
# later the build fails as:
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
owner = "KhronosGroup";
repo = "Vulkan-Headers";
rev = "vulkan-sdk-${version}";
hash = "sha256-u/40rOQyYbQza0aYbechLdKhYM1DgoMKkxauW2zZ/w0=";
hash = "sha256-X6HqcZDZ4ZQGBG3PlSxi0mhmYyrjmJYwk/pJ/XBqEZU=";
};

passthru.updateScript = ./update.sh;
Expand Down
8 changes: 5 additions & 3 deletions pkgs/tools/graphics/vulkan-tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@

stdenv.mkDerivation rec {
pname = "vulkan-tools";
version = "1.3.296.0";
version = "1.4.304.0";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "vulkan-sdk-${version}";
hash = "sha256-+24IVmmcxuPaT/vYRYZ4yluHS/uKfWiVa7yIvzsdTuQ=";
hash = "sha256-PtxzLsywYwaL4vhbDiabryLaMUMcwJGcL14dt8dnzvs=";
};

patches = [ ./wayland-scanner.patch ];

nativeBuildInputs = [
cmake
pkg-config
python3
wayland-scanner
];

buildInputs =
Expand All @@ -57,7 +60,6 @@ stdenv.mkDerivation rec {
libXrandr
wayland
wayland-protocols
wayland-scanner
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
moltenvk
Expand Down
17 changes: 17 additions & 0 deletions pkgs/tools/graphics/vulkan-tools/wayland-scanner.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt
index 4ecd3e36..17dc3f2e 100644
--- a/cube/CMakeLists.txt
+++ b/cube/CMakeLists.txt
@@ -96,9 +96,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|GNU")
pkg_get_variable(WAYLAND_SCANNER_EXECUTABLE wayland-scanner wayland_scanner)
message(DEBUG "WAYLAND_SCANNER_EXECUTABLE = ${WAYLAND_SCANNER_EXECUTABLE}")

- pkg_get_variable(WAYLAND_CLIENT_PATH wayland-client pkgdatadir)
- message(DEBUG "WAYLAND_CLIENT_PATH = ${WAYLAND_CLIENT_PATH}")
- set(WAYLAND_CODE_PROTOCOL ${WAYLAND_CLIENT_PATH}/wayland.xml)
+ pkg_get_variable(WAYLAND_SCANNER_PATH wayland-scanner pkgdatadir)
+ message(DEBUG "WAYLAND_SCANNER_PATH = ${WAYLAND_SCANNER_PATH}")
+ set(WAYLAND_CODE_PROTOCOL ${WAYLAND_SCANNER_PATH}/wayland.xml)

pkg_get_variable(WAYLAND_PROTOCOLS_PATH wayland-protocols pkgdatadir)
message(DEBUG "WAYLAND_PROTOCOLS_PATH = ${WAYLAND_PROTOCOLS_PATH}")

0 comments on commit 8bf44fb

Please sign in to comment.