diff options
| author | John Kehayias <john@guixotic.coop> | 2025-10-03 18:18:44 -0400 |
|---|---|---|
| committer | John Kehayias <john@guixotic.coop> | 2025-10-03 18:35:30 -0400 |
| commit | 5aa814d69aa14b69e0b81c4d3a0b75550d743f6b (patch) | |
| tree | d5ff1addf63fcb4bde4fde74f894beb6b0f2afa1 | |
| parent | d2601342550fd2d01df41c33d585ce786f92f73a (diff) | |
gnu: vulkan-tools: Fix loading of libvulkan.
Volk dependency was removed upstream and now uses direct dlopen call.
* gnu/packages/vulkan.scm (vulkan-tools)[arguments]<#:phases>: Add
patch-libvulkan-file-name phase so that dlopen will work.
[native-inputs]: Remove vulkan-volk.
Change-Id: Id7d442fea945f1e0a77028c0ea22e148b6cc6801
| -rw-r--r-- | gnu/packages/vulkan.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 5ab1feb465..ea7cdc3ef5 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -485,11 +485,19 @@ and the ICD.") (inputs (list glslang libxrandr vulkan-loader wayland wayland-protocols)) (native-inputs - (list googletest pkg-config python vulkan-volk vulkan-headers)) + (list googletest pkg-config python vulkan-headers)) (arguments (list #:configure-flags #~(list "-DBUILD_TESTS=ON") #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-libvulkan-file-name + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("vulkaninfo/vulkaninfo_functions.h" + "cube/cube_functions.h") + (("dlopen\\(\"libvulkan.so.1") + (string-append "dlopen(\"" + (search-input-file + inputs "/lib/libvulkan.so.1")))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? |
