From patchwork Thu Sep 1 16:27:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kaelyn Takata X-Patchwork-Id: 42128 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 C10F827BBEA; Thu, 1 Sep 2022 18:22:24 +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 7560327BBE9 for ; Thu, 1 Sep 2022 18:22:24 +0100 (BST) Received: from localhost ([::1]:41890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTntX-0007XD-LK for patchwork@mira.cbaines.net; Thu, 01 Sep 2022 13:22:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTn2y-0002mb-F2 for guix-patches@gnu.org; Thu, 01 Sep 2022 12:28:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTn2y-0001eL-62 for guix-patches@gnu.org; Thu, 01 Sep 2022 12:28:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTn2y-0006PC-2Q for guix-patches@gnu.org; Thu, 01 Sep 2022 12:28:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57297] [PATCH v2 7/7] gnu: Add vulkan-validationlayers. Resent-From: Kaelyn Takata Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Sep 2022 16:28:04 +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.166204967224573 (code B ref 57297); Thu, 01 Sep 2022 16:28:04 +0000 Received: (at 57297) by debbugs.gnu.org; 1 Sep 2022 16:27:52 +0000 Received: from localhost ([127.0.0.1]:43991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTn2l-0006OC-Mo for submit@debbugs.gnu.org; Thu, 01 Sep 2022 12:27:52 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:50401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTn2k-0006Nh-8W for 57297@debbugs.gnu.org; Thu, 01 Sep 2022 12:27:50 -0400 Date: Thu, 01 Sep 2022 16:27:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1662049664; x=1662308864; bh=ALg/23DrB9jPfTTRNYWGtqSZ1j3MRP26uXMzFGXMoZ4=; 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=C4VjXUXBJ6b9oNW8YhWEh735ospMfJiELpuqR7xrEGixWUiuE1Wocx188soJtmhvc gEl/T6Rv6GMtssHRMpcqr+zNyKjvY6FLpi6pTv5S6yJeP6AOHD06L4y9Wf5kVzmA0B NZi4WhYa0SOm4zHNRppwWb/iN+phbM7UPwGh8S4umWzBE2qR07McwfWZZthrLoDT6U zkUhIrgWR381LqQr3ML/bFi33OE6OtGE31jcuYY0/7cg0nBa5Px6GLrK1l7o1Otg7V xf0nk+aPtgUIz2D4/ikHCDYsreEYAcDFrjdtwUkq1CdrNF2OTR5T28xm/nMTGGhi8B CVyx34ia1sdBA== Message-ID: <158241a8a69bd663c86be49b87c19f23589fb7dc.1662049085.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 | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) -- 2.37.2 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 ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2021 Mathieu Othacehe +;;; Copyright © 2022 Kaelyn Takata ;;; ;;; 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)))