me
/
guix
Archived
1
0
Fork 0

gnu: vulkan-loader: Remove input labels.

* gnu/packages/vulkan.scm (vulkan-loader)[native-inputs]: Remove labels.
[arguments]: Use SEARCH-INPUT-DIRECTORY instead of label.  While at it remove
use of THIS-PACKAGE-INPUT.
master
Marius Bakke 2022-11-20 20:56:27 +01:00 committed by Maxim Cournoyer
parent 4daa9c353f
commit c684e5f4e4
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 22 additions and 19 deletions

View File

@ -225,26 +225,29 @@ interpretation of the specifications for these languages.")
"0w69sh669sx9pwlvv2rv92ds2hm2rbzsa6qqcmd8kcad0qfq7dz2")))) "0w69sh669sx9pwlvv2rv92ds2hm2rbzsa6qqcmd8kcad0qfq7dz2"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags (list
,#~(list #:configure-flags
(string-append "-DVULKAN_HEADERS_INSTALL_DIR=" #~(list (string-append "-DVULKAN_HEADERS_INSTALL_DIR="
#$(this-package-input "vulkan-headers")) (dirname (dirname
(search-input-directory
%build-inputs "include/vulkan"))))
(string-append "-DGOOGLETEST_INSTALL_DIR=" (string-append "-DGOOGLETEST_INSTALL_DIR="
(getcwd) "/source/external/googletest") (getcwd) "/source/external/googletest")
"-DBUILD_TESTS=ON") "-DBUILD_TESTS=ON")
#:phases (modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'unpack-googletest (add-after 'unpack 'unpack-googletest
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key native-inputs inputs #:allow-other-keys)
(let ((gtest (assoc-ref inputs "googletest:source"))) (let ((gtest (search-input-directory (or native-inputs inputs)
(when gtest "googletest")))
(copy-recursively gtest "external/googletest")) (copy-recursively (dirname gtest)
#t)))))) "external/googletest")))))))
(native-inputs (native-inputs
`(("googletest:source" ,(package-source googletest)) (list (package-source googletest)
("libxrandr" ,libxrandr) libxrandr
("pkg-config" ,pkg-config) pkg-config
("python" ,python) python
("wayland" ,wayland))) wayland))
(inputs (inputs
(list vulkan-headers)) (list vulkan-headers))
(home-page (home-page