gnu: glslang: Improve style.

* gnu/packages/vulkan.scm (glslang)[arguments]: Use Gexp.
[native-inputs]: Remove python; add python-minimal.

Change-Id: I7b4f236b984b85d12f76f9d8de2b627e005bd232
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
Cayetano Santos 2025-08-08 09:56:12 +02:00 committed by Andreas Enge
parent 1dca89de36
commit 6b62d7d3ed
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -229,13 +229,16 @@ translation between LLVM IR and SPIR-V.")
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" (list
#:configure-flags
#~(list "-DBUILD_SHARED_LIBS=ON"
"-DALLOW_EXTERNAL_SPIRV_TOOLS=ON" "-DALLOW_EXTERNAL_SPIRV_TOOLS=ON"
,@(if (target-riscv64?) #$@(if (target-riscv64?)
`("-DCMAKE_EXE_LINKER_FLAGS=-latomic") `("-DCMAKE_EXE_LINKER_FLAGS=-latomic")
'())) '()))
#:phases (modify-phases %standard-phases #:phases
,@(if (target-ppc32?) #~(modify-phases %standard-phases
#$@(if (target-ppc32?)
`((add-after 'unpack 'skip-failing-test `((add-after 'unpack 'skip-failing-test
(lambda _ (lambda _
;; TODO: Figure out why this test fails. ;; TODO: Figure out why this test fails.
@ -254,7 +257,7 @@ translation between LLVM IR and SPIR-V.")
"--output-on-failure"))))))) "--output-on-failure")))))))
(inputs (list spirv-tools)) (inputs (list spirv-tools))
(native-inputs (native-inputs
(list pkg-config python)) (list pkg-config python-minimal))
(home-page "https://github.com/KhronosGroup/glslang") (home-page "https://github.com/KhronosGroup/glslang")
(synopsis "OpenGL and OpenGL ES shader front end and validator") (synopsis "OpenGL and OpenGL ES shader front end and validator")
(description (description