From 998232936a491ace0383fbcff968029a81c12c1e Mon Sep 17 00:00:00 2001 From: Andy Tai Date: Sat, 14 Aug 2021 01:31:34 -0700 Subject: [PATCH] gnu: Add bgfx To: guix-patches@gnu.org * gnu/packages/graphics.scm (bgfx): New variable --- gnu/packages/graphics.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 38feb27c87..a07c3067fb 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2000,3 +2000,41 @@ Some feature highlights: such as VR and AR on mobile, PC/desktop, and any other device. Monado aims to be a complete and conforming implementation of the OpenXR API made by Khronos.") (license license:boost1.0))) + +(define-public bgfx + (let ((commit "65513d08541ab1ead814f2c97d0502c8d13eae68") + (revision "0")) + (package + (name "bgfx") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/bkaradzic/bgfx.cmake") + (commit commit) + ;; Fetch git submodules + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1k18230zw3v2l0vgz5xi0l23fa0686yx0jd6hkvvvwp3zlakqp7n")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f)) ;; no tests + (inputs + `(("glslang" ,glslang) + ("libxcb" ,libxcb) + ("opengl" ,mesa) + ("vulkan-loader" ,vulkan-loader))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("vulkan-headers" ,vulkan-headers))) + (home-page "https://github.com/bkaradzic/bgfx") + (synopsis "Cross-platform, graphics API agnostic. rendering library") + (description "bgfx is a cross-platform, graphics API agnostic, +'Bring Your Own Engine/Framework' style rendering library supporting Direct3D, +OpenGL, Metal, Vulkan and WebGL.") + (license (list license:bsd-2 license:cc0))))) -- 2.32.0