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
parent
bf3ef805c6
commit
078f33e420
|
@ -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"
|
||||
#:configure-flags
|
||||
#~(list "-DUSE_ROBIN_HOOD_HASHING=OFF"
|
||||
(string-append "-DGLSLANG_INSTALL_DIR="
|
||||
#$glslang)
|
||||
(string-append
|
||||
"-DSPIRV_HEADERS_INSTALL_DIR="
|
||||
#$spirv-headers) "-Wno-dev")
|
||||
(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 _
|
||||
|
|
Reference in New Issue