mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: vulkan-loader: Refer to vulkan-headers in pkg-config file.
* gnu/packages/vulkan.scm (vulkan-loader)[arguments]: Add phase.
This commit is contained in:
parent
ac785300fd
commit
bef257a1d7
1 changed files with 8 additions and 0 deletions
|
@ -237,6 +237,14 @@ (define-public vulkan-loader
|
|||
"-DBUILD_TESTS=ON")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-pkg-config-file
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((vulkan-headers (dirname (search-input-directory
|
||||
inputs "include/vulkan"))))
|
||||
;; Ensure the pkg-config file refers to vulkan-headers.
|
||||
(substitute* "loader/vulkan.pc.in"
|
||||
(("^includedir=.*")
|
||||
(string-append "includedir=" vulkan-headers "\n"))))))
|
||||
(add-after 'unpack 'unpack-googletest
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(let ((gtest (search-input-directory (or native-inputs inputs)
|
||||
|
|
Loading…
Reference in a new issue