mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: vkd3d: Improve style.
* gnu/packages/vulkan.scm (vkd3d)[arguments]: Use G-Expressions. [native-inputs]: Modernize. Change-Id: I29d558f777f3bd56e55e8e5872ca7fa291081b0d Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
parent
c8e8fba2e1
commit
5f362b47ad
1 changed files with 46 additions and 45 deletions
|
@ -560,51 +560,52 @@ shader compilation.")
|
||||||
(define-public vkd3d
|
(define-public vkd3d
|
||||||
(let ((commit "56cd4a94d541707959ce7677af6d1a34739e5579")) ; Release 1.2.
|
(let ((commit "56cd4a94d541707959ce7677af6d1a34739e5579")) ; Release 1.2.
|
||||||
(package
|
(package
|
||||||
(name "vkd3d")
|
(name "vkd3d")
|
||||||
(version "1.2")
|
(version "1.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://source.winehq.org/git/vkd3d.git")
|
(url "https://source.winehq.org/git/vkd3d.git")
|
||||||
(commit commit)))
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1n4a622drgnprvz5hjxzyzcsg2lp5rlf1sajki2vzf5gsx6fdpk8"))
|
"1n4a622drgnprvz5hjxzyzcsg2lp5rlf1sajki2vzf5gsx6fdpk8"))
|
||||||
(file-name (string-append name "-" version "-checkout"))))
|
(file-name (string-append name "-" version "-checkout"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("--with-spirv-tools")
|
(list
|
||||||
#:phases (modify-phases %standard-phases
|
#:configure-flags #~(list "--with-spirv-tools")
|
||||||
(add-after 'unpack 'patch-for-new-vulkan
|
#:phases
|
||||||
(lambda _
|
#~(modify-phases %standard-phases
|
||||||
;; Mimic upstream commit 8e7bf8a5c3e0047 for
|
(add-after 'unpack 'patch-for-new-vulkan
|
||||||
;; compatibility with newer vulkan-headers.
|
(lambda _
|
||||||
(substitute* "libs/vkd3d/vkd3d_private.h"
|
;; Mimic upstream commit 8e7bf8a5c3e0047 for
|
||||||
(("VK_PIPELINE_BIND_POINT_RANGE_SIZE")
|
;; compatibility with newer vulkan-headers.
|
||||||
"2u"))
|
(substitute* "libs/vkd3d/vkd3d_private.h"
|
||||||
#t)))))
|
(("VK_PIPELINE_BIND_POINT_RANGE_SIZE")
|
||||||
(native-inputs
|
"2u")))))))
|
||||||
`(("autoconf" ,autoconf)
|
(native-inputs
|
||||||
("automake" ,automake)
|
(list autoconf
|
||||||
("gettext" ,gettext-minimal)
|
automake
|
||||||
("libtool" ,libtool)
|
gettext-minimal
|
||||||
("pkg-config" ,pkg-config)))
|
libtool
|
||||||
(inputs
|
pkg-config))
|
||||||
(list libx11
|
(inputs
|
||||||
libxcb
|
(list libx11
|
||||||
spirv-headers
|
libxcb
|
||||||
spirv-tools
|
spirv-headers
|
||||||
vulkan-headers
|
spirv-tools
|
||||||
vulkan-loader
|
vulkan-headers
|
||||||
wine-minimal ; Needed for 'widl'.
|
vulkan-loader
|
||||||
xcb-util
|
wine-minimal ; Needed for 'widl'.
|
||||||
xcb-util-keysyms
|
xcb-util
|
||||||
xcb-util-wm))
|
xcb-util-keysyms
|
||||||
(home-page "https://source.winehq.org/git/vkd3d.git/")
|
xcb-util-wm))
|
||||||
(synopsis "Direct3D 12 to Vulkan translation library")
|
(home-page "https://source.winehq.org/git/vkd3d.git/")
|
||||||
(description "vkd3d is a library for translating Direct3D 12 to Vulkan.")
|
(synopsis "Direct3D 12 to Vulkan translation library")
|
||||||
(license license:lgpl2.1))))
|
(description "vkd3d is a library for translating Direct3D 12 to Vulkan.")
|
||||||
|
(license license:lgpl2.1))))
|
||||||
|
|
||||||
(define-public vulkan-validationlayers
|
(define-public vulkan-validationlayers
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue