guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

55/63: gnu: vkd3d: Fix build with newer Vulkan headers.


From: guix-commits
Subject: 55/63: gnu: vkd3d: Fix build with newer Vulkan headers.
Date: Tue, 26 May 2020 17:18:14 -0400 (EDT)

mbakke pushed a commit to branch staging2
in repository guix.

commit d92f9d341eae2d808e322897689d895745142c3d
Author: Marius Bakke <address@hidden>
AuthorDate: Fri May 22 21:03:02 2020 +0200

    gnu: vkd3d: Fix build with newer Vulkan headers.
    
    * gnu/packages/vulkan.scm (vkd3d)[arguments]: Add phase 
'patch-for-new-vulkan'.
---
 gnu/packages/vulkan.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 59dbfae..d5f5be6 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]