~ruther/guix-local

bef257a1d7e37aaf8e7a635036505a0b3eec1578 — Marius Bakke 3 years ago ac78530
gnu: vulkan-loader: Refer to vulkan-headers in pkg-config file.

* gnu/packages/vulkan.scm (vulkan-loader)[arguments]: Add phase.
1 files changed, 8 insertions(+), 0 deletions(-)

M gnu/packages/vulkan.scm
M gnu/packages/vulkan.scm => gnu/packages/vulkan.scm +8 -0
@@ 237,6 237,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)