me
/
guix
Archived
1
0
Fork 0

gnu: vulkan-validationlayers: Avoid direct variable references.

* gnu/packages/vulkan.scm (vulkan-validationlayers)[arguments]: Refer to
GLSLANG and SPIRV-HEADERS from inputs, instead of the global variables.
master
Marius Bakke 2022-11-15 13:16:18 +01:00 committed by Maxim Cournoyer
parent bf3ef805c6
commit 078f33e420
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 13 additions and 6 deletions

View File

@ -417,12 +417,19 @@ shader compilation.")
(native-inputs (list pkg-config python spirv-headers vulkan-headers))
(arguments
(list #:tests? #f ;no tests
#:configure-flags #~(list "-DUSE_ROBIN_HOOD_HASHING=OFF"
(string-append "-DGLSLANG_INSTALL_DIR="
#$glslang)
(string-append
"-DSPIRV_HEADERS_INSTALL_DIR="
#$spirv-headers) "-Wno-dev")
#:configure-flags
#~(list "-DUSE_ROBIN_HOOD_HASHING=OFF"
(string-append "-DGLSLANG_INSTALL_DIR="
(dirname (dirname
(search-input-directory
%build-inputs
"include/glslang"))))
(string-append "-DSPIRV_HEADERS_INSTALL_DIR="
(dirname (dirname
(search-input-directory
%build-inputs
"include/spirv"))))
"-Wno-dev")
#:phases #~(modify-phases %standard-phases
(add-after 'install 'set-layer-path-in-manifest
(lambda _