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:
Marius Bakke 2023-01-08 20:27:08 +01:00 committed by Maxim Cournoyer
parent ac785300fd
commit bef257a1d7
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -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)