gnu: wine64-staging: Enable Vulkan support.

* gnu/packages/wine.scm (wine64-staging)[arguments]: Add
'hardcode-libvulkan-path phase.
This commit is contained in:
Rutger Helling 2018-01-31 09:35:19 +01:00
parent 39b4744a07
commit ee5402bfce
No known key found for this signature in database
GPG key ID: F3A727DB44FCCA36

View file

@ -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"))