summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2026-05-03 17:37:47 +0530
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-05-12 09:40:06 +0200
commit78c8ab578225bdbda77cfafa9640a7f3d2a653f9 (patch)
tree30d46f3a92f74aa8c39d9f09b01183af43b7200f
parent4fca464f917d445b0ebaaf714c492156c712f55a (diff)
gnu: Add jolt-physics.
* gnu/packages/game-development.scm (jolt-physics): New variable. Change-Id: Ib9393401acd973199d0f2559760a8d07220cdc82 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/game-development.scm41
1 files changed, 41 insertions, 0 deletions
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")