3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: vkd3d: Fix build with newer Vulkan headers.

* gnu/packages/vulkan.scm (vkd3d)[arguments]: Add phase 'patch-for-new-vulkan'.
This commit is contained in:
Marius Bakke 2020-05-22 21:03:02 +02:00 committed by Marius Bakke
parent 51f3b34913
commit d92f9d341e
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -322,7 +322,16 @@ shader compilation.")
(file-name (string-append name "-" version "-checkout"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags '("--with-spirv-tools")))
`(#:configure-flags '("--with-spirv-tools")
#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-for-new-vulkan
(lambda _
;; Mimic upstream commit 8e7bf8a5c3e0047 for
;; compatibility with newer vulkan-headers.
(substitute* "libs/vkd3d/vkd3d_private.h"
(("VK_PIPELINE_BIND_POINT_RANGE_SIZE")
"2u"))
#t)))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)