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
parent 222a04ff97
commit 2aa2fbf18b
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA

View File

@ -240,6 +240,14 @@ interpretation of the specifications for these languages.")
"-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)