unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaelyn Takata via Guix-patches via <guix-patches@gnu.org>
To: 57297@debbugs.gnu.org
Cc: Kaelyn Takata <kaelyn.alexi@protonmail.com>
Subject: [bug#57297] [PATCH v2 7/7] gnu: Add vulkan-validationlayers.
Date: Thu, 01 Sep 2022 16:27:40 +0000	[thread overview]
Message-ID: <158241a8a69bd663c86be49b87c19f23589fb7dc.1662049085.git.kaelyn.alexi@protonmail.com> (raw)
In-Reply-To: <cover.1662049085.git.kaelyn.alexi@protonmail.com>

* 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 @@ (define-public vkd3d
      (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)))
--
2.37.2






  parent reply	other threads:[~2022-09-01 17:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19 14:48 [bug#57297] [PATCH 0/7] Update vulkan packages and add vulkan-validationlayers Kaelyn Takata via Guix-patches via
2022-08-19 14:50 ` [bug#57297] [PATCH 1/7] gnu: spirv-headers: Update to 1.2.198.0 Kaelyn Takata via Guix-patches via
2022-08-19 14:50 ` [bug#57297] [PATCH 2/7] gnu: spirv-tools: Update to 2021.4 Kaelyn Takata via Guix-patches via
2022-08-19 14:50 ` [bug#57297] [PATCH 3/7] gnu: vulkan-headers: Update to 1.2.202 Kaelyn Takata via Guix-patches via
2022-08-19 14:51 ` [bug#57297] [PATCH 4/7] gnu: vulkan-loader: " Kaelyn Takata via Guix-patches via
2022-08-19 14:51 ` [bug#57297] [PATCH 5/7] gnu: vulkan-tools: Update to 1.2.201 Kaelyn Takata via Guix-patches via
2022-08-19 14:51 ` [bug#57297] [PATCH 6/7] gnu: shaderc: Update to 2021.3 Kaelyn Takata via Guix-patches via
2022-08-19 14:51 ` [bug#57297] [PATCH 7/7] gnu: Add vulkan-validationlayers Kaelyn Takata via Guix-patches via
2022-09-01  7:44 ` [bug#57297] [PATCH 0/7] Update vulkan packages and add vulkan-validationlayers Ricardo Wurmus
2022-09-01 16:26 ` [bug#57297] [PATCH v2 " Kaelyn Takata via Guix-patches via
2022-09-01 16:26   ` [bug#57297] [PATCH v2 1/7] gnu: spirv-headers: Update to 1.2.198.0 Kaelyn Takata via Guix-patches via
2022-09-01 16:26   ` [bug#57297] [PATCH v2 2/7] gnu: spirv-tools: Update to 2021.4 Kaelyn Takata via Guix-patches via
2022-09-01 16:27   ` [bug#57297] [PATCH v2 3/7] gnu: vulkan-headers: Update to 1.2.202 Kaelyn Takata via Guix-patches via
2022-09-01 16:27   ` [bug#57297] [PATCH v2 4/7] gnu: vulkan-loader: " Kaelyn Takata via Guix-patches via
2022-09-01 16:27   ` [bug#57297] [PATCH v2 5/7] gnu: vulkan-tools: Update to 1.2.201 Kaelyn Takata via Guix-patches via
2022-09-01 16:27   ` [bug#57297] [PATCH v2 6/7] gnu: shaderc: Update to 2021.3 Kaelyn Takata via Guix-patches via
2022-09-01 16:27   ` Kaelyn Takata via Guix-patches via [this message]
2022-09-01 17:17 ` bug#57297: [PATCH v2 0/7] Update vulkan packages and add vulkan-validationlayers Ricardo Wurmus
2022-09-16  6:34 ` [bug#57297] [PATCH " Ricardo Wurmus
2022-09-16 14:26   ` Kaelyn via Guix-patches via
2022-10-15 16:52 ` Kaelyn via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=158241a8a69bd663c86be49b87c19f23589fb7dc.1662049085.git.kaelyn.alexi@protonmail.com \
    --to=guix-patches@gnu.org \
    --cc=57297@debbugs.gnu.org \
    --cc=kaelyn.alexi@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).