Subject: [bug#76337] [PATCH] gnu: llvm-spirv-translator: Fix cross compilation

From: Yarl Baudig <[email-masked]>
Date: Sun, 16 Feb 2025 15:07:18 +0100

* gnu/packages/vulkan.scm (llvm-spirv-translator): Fix
 cross-compilation. [configure-flags]: replace ungexp with ungexp-native when
 relevant. Fix headers path.

Change-Id: If0fe4c42e98a67cbda27519815f556bb44713a60
---
 gnu/packages/vulkan.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 241dff73ac..bfa32740e0 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -177,10 +177,9 @@ (define-public spirv-llvm-translator
                      (target-x86-64?))
        #:configure-flags
        #~(list (string-append "-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="
-                              #$(this-package-native-input "spirv-headers")
-                              "/include/spirv")
+                              #+(this-package-native-input "spirv-headers"))
                (string-append "-DLLVM_EXTERNAL_LIT="
-                              #$(this-package-native-input "python-lit")
+                              #+(this-package-native-input "python-lit")
                               "/bin/lit")
                (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
                               #$output "/lib")

base-commit: 1725d74c9f730f2628e2a02659b5ce925276d7ca
-- 
2.48.1