Subject: [PATCH 1/2] gnu: Add ondsel-solver.

From: Vincent Legoll <[email-masked]>
Date: Mon, 25 Nov 2024 23:00:13 +0100

* gnu/packages/engineering.scm (ondsel-solver): New variable.

Change-Id: Ie966b13d1ec5351ef8b9f2459780f3da47f96db8
Signed-off-by: Vincent Legoll <[email-masked]>
---
 gnu/packages/engineering.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 3ceeb4425a..5178043a52 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2019 Steve Sprang <[email-masked]>
 ;;; Copyright © 2019 John Soo <[email-masked]>
 ;;; Copyright © 2020 Brice Waegeneire <[email-masked]>
-;;; Copyright © 2020,2021 Vincent Legoll <[email-masked]>
+;;; Copyright © 2020,2021,2024 Vincent Legoll <[email-masked]>
 ;;; Copyright © 2020, 2023 Marius Bakke <[email-masked]>
 ;;; Copyright © 2020, 2021 Ekaitz Zarraga <[email-masked]>
 ;;; Copyright © 2020 B. Wilson <[email-masked]>
@@ -2930,6 +2930,29 @@ (define-public emacs-scad-mode
 OpenSCAD code.  It supports syntax highlighting, indenting and refilling of
 comments.")))
 
+(define-public ondsel-solver
+  (package
+    (name "ondsel-solver")
+    ;; There's no tagged release
+    (version "2e3659c4bce3e6885269e0cb3d640261b2a91108")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/Ondsel-Development/OndselSolver")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1bgk3asyz47r1kvdgcz8q7sh1g29przdsx9ib1jqqbc0nv8ww68v"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f)) ;; Tests require Google's gtest and gmock
+    ;; The company is shutting down, so https://ondsel.com may not exist for long
+    (home-page "https://github.com/Ondsel-Development/OndselSolver")
+    (synopsis "Assembly Constraints and Multibody Dynamics code")
+    (description "Used by FreeCAD 1.0.0 for its new Assembly workbench")
+    (license license:lgpl2.1+)))
+
 (define-public freecad
   (package
     (name "freecad")
-- 
2.46.0