From patchwork Fri Aug 19 14:51:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kaelyn Takata X-Patchwork-Id: 41776 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 24F3A27BBEA; Fri, 19 Aug 2022 15:52:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AD61127BBE9 for ; Fri, 19 Aug 2022 15:52:26 +0100 (BST) Received: from localhost ([::1]:39010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oP3MG-0005IO-Rv for patchwork@mira.cbaines.net; Fri, 19 Aug 2022 10:52:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP3Lw-0004cc-0H for guix-patches@gnu.org; Fri, 19 Aug 2022 10:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oP3Lv-000736-MC for guix-patches@gnu.org; Fri, 19 Aug 2022 10:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oP3Lv-0000a6-IS for guix-patches@gnu.org; Fri, 19 Aug 2022 10:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57297] [PATCH 7/7] gnu: Add vulkan-validationlayers. Resent-From: Kaelyn Takata Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Aug 2022 14:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57297 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57297@debbugs.gnu.org Cc: Kaelyn Takata Received: via spool by 57297-submit@debbugs.gnu.org id=B57297.16609207022177 (code B ref 57297); Fri, 19 Aug 2022 14:52:03 +0000 Received: (at 57297) by debbugs.gnu.org; 19 Aug 2022 14:51:42 +0000 Received: from localhost ([127.0.0.1]:59084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oP3LZ-0000Z3-L8 for submit@debbugs.gnu.org; Fri, 19 Aug 2022 10:51:41 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:22791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oP3LY-0000Yh-Bz for 57297@debbugs.gnu.org; Fri, 19 Aug 2022 10:51:40 -0400 Date: Fri, 19 Aug 2022 14:51:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1660920694; x=1661179894; bh=ykvcbFvw1MVmPbg3fAU3SDEzCEgPilsbwZIZ4FUAN8k=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=b7A+ulzXPRygJAnjBQSd97pMSfvVux+RFUk6BP8Z+SF3UaLZQJy3Fg6unLR9iBIaS bGk9DL/emXoQ7iFqBQDMQCD5IGWKqrbowjcW5rlLrpRpO1hj2Tz7aFiSvz4thcw5bm lo4NV2maBa8UAMMqJhEVpdIeXzLj/nUbdk/FIbH9d6JxKP/IdMvq2mu3PPLRJmsxaH SPox7szT3U8EZOZeLSjf6GbfD4l63kHBnmw3FE2+DER682jqhctQN8np9NlLThLar2 Y11RBsZ/oiIwYaIb+2Ol/OoXp95rxzs3P1oQC1SVEzWRfJwJ+udTUTR66CEUBXX+BG lENP/xMJ+i4Xw== Message-ID: <3e23f0f18a0e71f2d533b410acbb3aa547c9688c.1660919376.git.kaelyn.alexi@protonmail.com> In-Reply-To: References: Feedback-ID: 34709329:user:proton MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Kaelyn Takata X-ACL-Warn: , Kaelyn Takata via Guix-patches X-Patchwork-Original-From: Kaelyn Takata via Guix-patches via From: Kaelyn Takata X-getmail-retrieved-from-mailbox: Patches * gnu/packages/vulkan.scm (vulkan-validationlayers): New variable. --- gnu/packages/vulkan.scm | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) -- 2.37.2 diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 62b5b88732..f458cef99c 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2018 Efraim Flashner ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2021 Mathieu Othacehe +;;; Copyright © 2022 Kaelyn Takata ;;; ;;; This file is part of GNU Guix. ;;; @@ -393,3 +394,53 @@ (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* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (manifest (string-append out + "/share/vulkan/explicit_layer.d" + "/VkLayer_khronos_validation.json"))) + (substitute* manifest + (("\"libVkLayer_khronos_validation.so\"") + (string-append "\"" out + "/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)))