diff options
author | Marius Bakke <marius@gnu.org> | 2022-11-15 13:16:18 +0100 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-14 15:10:51 -0400 |
commit | 078f33e4206be799adde55eaac9a5b3125fb392d (patch) | |
tree | 904a261092a9da0b444e1b77dc1d02a571528b0a | |
parent | bf3ef805c6dbcb4fffd70b4cc01660970e9c2d65 (diff) |
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.
-rw-r--r-- | gnu/packages/vulkan.scm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 83cd64847f..74a06ab4c3 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -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 _ |