From 78c8ab578225bdbda77cfafa9640a7f3d2a653f9 Mon Sep 17 00:00:00 2001 From: Sughosha Date: Sun, 3 May 2026 17:37:47 +0530 Subject: gnu: Add jolt-physics. * gnu/packages/game-development.scm (jolt-physics): New variable. Change-Id: Ib9393401acd973199d0f2559760a8d07220cdc82 Signed-off-by: Liliana Marie Prikler --- gnu/packages/game-development.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 846f8f1fab..65c6b934db 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2391,6 +2391,47 @@ games.") (home-page "https://openmw.org") (license license:gpl3))) +(define-public jolt-physics + (package + (name "jolt-physics") + (version "5.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jrouwe/JoltPhysics") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dzqi4mxrzg5cyf5k8rdlb078939ib849n7gs6014d3ljymf839r")) + (modules '((guix build utils))) + ;; Unbundle Roboto font. + (snippet + '(begin + (delete-file-recursively "Assets/Fonts") + (substitute* "TestFramework/TestFramework.cmake" + ((".*Roboto-Regular\\.ttf.*") "")))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON") + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'change-directory + (lambda _ + (chdir "Build"))) + (add-after 'install 'change-directory + (lambda _ + (chdir "..")))))) + (home-page "https://github.com/jrouwe/JoltPhysics") + (synopsis "Rigid body physics and collision detection library") + (description + "Jolt Physics is a multi core friendly rigid body physics and collision +detection library, written in C++. It is suitable for games and VR +applications.") + (license license:expat))) + (define-public godot-lts (package (name "godot") -- cgit v1.3