From ee5402bfce1aa7ffbe9d27ed6b1fe54c2202a4bb Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Wed, 31 Jan 2018 09:35:19 +0100 Subject: [PATCH] gnu: wine64-staging: Enable Vulkan support. * gnu/packages/wine.scm (wine64-staging)[arguments]: Add 'hardcode-libvulkan-path phase. --- gnu/packages/wine.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm index 51e0600234..e71538f1b0 100644 --- a/gnu/packages/wine.scm +++ b/gnu/packages/wine.scm @@ -281,6 +281,14 @@ (define-public wine64-staging (string-append "libdir=" %output "/lib/wine64")) #:phases (modify-phases %standard-phases + (add-before 'configure 'hardcore-libvulkan-path + (lambda* (#:key outputs #:allow-other-keys) + (let* ((libvulkan (string-append (assoc-ref %build-inputs + "vulkan-icd-loader") "/lib/libvulkan.so"))) + ;; Hard-code the path to libvulkan.so. + (substitute* "dlls/vulkan/vulkan_thunks.c" (("libvulkan.so") + libvulkan)) + #t))) (add-after 'install 'copy-wine32-binaries (lambda* (#:key outputs #:allow-other-keys) (let* ((wine32 (assoc-ref %build-inputs "wine-staging"))