[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: gnu: Add vulkan-validationlayers.
From: |
guix-commits |
Subject: |
07/07: gnu: Add vulkan-validationlayers. |
Date: |
Sun, 11 Sep 2022 15:00:09 -0400 (EDT) |
rekado pushed a commit to branch update-vulkan-headers-staging
in repository guix.
commit fef63e7b8c594a39fb37d28cab7eb88227d5117e
Author: Kaelyn Takata <kaelyn.alexi@protonmail.com>
AuthorDate: Thu Sep 1 16:27:40 2022 +0000
gnu: Add vulkan-validationlayers.
* gnu/packages/vulkan.scm (vulkan-validationlayers): New variable.
---
gnu/packages/vulkan.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
index 62b5b88732..8f664334d4 100644
--- a/gnu/packages/vulkan.scm
+++ b/gnu/packages/vulkan.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2021 Mathieu Othacehe <othacehe@gnu.org>
+;;; Copyright © 2022 Kaelyn Takata <kaelyn.alexi@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -393,3 +394,52 @@ shader compilation.")
(synopsis "Direct3D 12 to Vulkan translation library")
(description "vkd3d is a library for translating Direct3D 12 to Vulkan.")
(license license:lgpl2.1))))
+
+(define-public vulkan-validationlayers
+ (package
+ (name "vulkan-validationlayers")
+ (version "1.2.201")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url
+ "https://github.com/KhronosGroup/Vulkan-ValidationLayers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1jnz9cmy5d5g6jh9p4wr0qrlqlpfp07b3cizq37i5p1bcabdgmrz"))))
+ (build-system cmake-build-system)
+ (inputs (list glslang
+ libxrandr
+ mesa
+ shaderc
+ spirv-tools
+ vulkan-loader
+ wayland))
+ (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")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'set-layer-path-in-manifest
+ (lambda _
+ (let ((manifest (string-append #$output
+ "/share/vulkan/explicit_layer.d"
+
"/VkLayer_khronos_validation.json")))
+ (substitute* manifest
+ (("\"libVkLayer_khronos_validation.so\"")
+ (string-append "\"" #$output
+
"/lib/libVkLayer_khronos_validation.so\"")))))))))
+ (home-page "https://github.com/KhronosGroup/Vulkan-ValidationLayers")
+ (synopsis "Khronos official validation layers for Vulkan")
+ (description
+ "Vulkan-ValidationLayers provides the Khronos official validation layers
that
+can assist development by enabling developers to verify their applications
correctly
+use the Vulkan API.")
+ (license license:asl2.0)))
- branch update-vulkan-headers-staging created (now fef63e7b8c), guix-commits, 2022/09/11
- 05/07: gnu: vulkan-tools: Update to 1.2.201., guix-commits, 2022/09/11
- 07/07: gnu: Add vulkan-validationlayers.,
guix-commits <=
- 02/07: gnu: spirv-tools: Update to 2021.4., guix-commits, 2022/09/11
- 01/07: gnu: spirv-headers: Update to 1.2.198.0., guix-commits, 2022/09/11
- 04/07: gnu: vulkan-loader: Update to 1.2.202., guix-commits, 2022/09/11
- 06/07: gnu: shaderc: Update to 2021.3., guix-commits, 2022/09/11
- 03/07: gnu: vulkan-headers: Update to 1.2.202., guix-commits, 2022/09/11