* [bug#52850] [PATCH] gnu: Add openxr.
@ 2021-12-28 14:17 Vinicius Monego
2021-12-29 23:05 ` bug#52850: " Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Monego @ 2021-12-28 14:17 UTC (permalink / raw)
To: 52850; +Cc: Vinicius Monego
* 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#52850: [PATCH] gnu: Add openxr.
2021-12-28 14:17 [bug#52850] [PATCH] gnu: Add openxr Vinicius Monego
@ 2021-12-29 23:05 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-12-29 23:05 UTC (permalink / raw)
To: Vinicius Monego; +Cc: 52850-done
Hello,
Vinicius Monego <monego@posteo.net> writes:
> * gnu/packages/graphics.scm (openxr): New variable.
Applied. Thank you.
> + (snippet
> + '(begin
> + ;; Delete bundled jsoncpp.
> + (delete-file-recursively "src/external/jsoncpp") #t))
I removed the trailing #t here.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-29 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 14:17 [bug#52850] [PATCH] gnu: Add openxr Vinicius Monego
2021-12-29 23:05 ` bug#52850: " Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.