aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-05-22 21:03:02 +0200
committerMarius Bakke <marius@gnu.org>2020-05-26 22:36:10 +0200
commitd92f9d341eae2d808e322897689d895745142c3d (patch)
treed3ba9f046bc28d6e4217739ffff9ad583e60203c
parent51f3b34913442afbc638a6e3331a18df1a9e5d97 (diff)
downloadguix-d92f9d341eae2d808e322897689d895745142c3d.tar
guix-d92f9d341eae2d808e322897689d895745142c3d.tar.gz
gnu: vkd3d: Fix build with newer Vulkan headers.
* gnu/packages/vulkan.scm (vkd3d)[arguments]: Add phase 'patch-for-new-vulkan'.
-rw-r--r--gnu/packages/vulkan.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 59dbfae11d..d5f5be6816 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -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)