From: Vinicius Monego <monego@posteo.net>
To: 52850@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#52850] [PATCH] gnu: Add openxr.
Date: Tue, 28 Dec 2021 14:17:02 +0000 [thread overview]
Message-ID: <20211228141702.62910-1-monego@posteo.net> (raw)
* gnu/packages/graphics.scm (openxr): New variable.
---
gnu/packages/graphics.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 3be37d7841..5c7ae8831e 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -96,6 +96,7 @@
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
#:use-module (gnu packages sdl)
+ #:use-module (gnu packages serialization)
#:use-module (gnu packages stb)
#:use-module (gnu packages swig)
#:use-module (gnu packages tbb)
@@ -1919,6 +1920,38 @@ Some feature highlights:
@end itemize\n")
(license license:gpl3+))))
+(define-public openxr
+ (package
+ (name "openxr")
+ (version "1.0.20")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/KhronosGroup/OpenXR-SDK")
+ (commit (string-append "release-" version))))
+ (file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Delete bundled jsoncpp.
+ (delete-file-recursively "src/external/jsoncpp") #t))
+ (sha256
+ (base32 "1jd7jjxlrdi8kjnmn3sad7dgb4h48dbxryfb9snf0kifn47bi20m"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f)) ; there are no tests
+ (native-inputs
+ (list pkg-config python shaderc vulkan-headers))
+ (inputs
+ (list jsoncpp mesa vulkan-loader wayland))
+ (home-page "https://www.khronos.org/openxr/")
+ (synopsis "Generated headers and sources for OpenXR loader")
+ (description "This package contains OpenXR headers, as well as source code
+and build scripts for the OpenXR loader.")
+ ;; Dual licensed. Either license applies.
+ (license (list license:asl2.0 license:expat))))
+
(define-public monado
(package
(name "monado")
base-commit: 28b477cb2e5d9185da16f305caff15809dfa06f3
--
2.30.2
next reply other threads:[~2021-12-28 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-28 14:17 Vinicius Monego [this message]
2021-12-29 23:05 ` bug#52850: [PATCH] gnu: Add openxr Nicolas Goaziou
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=20211228141702.62910-1-monego@posteo.net \
--to=monego@posteo.net \
--cc=52850@debbugs.gnu.org \
/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).