Subject: [bug#67793] [PATCH v2] gnu: Add exprtk.

From: Lars Bilke <[email-masked]>
Date: Thu, 02 Jan 2025 14:17:12 +0100

* gnu/packages/maths.scm (exprtk): New variable.

Change-Id: I25e5a37cfd72b4b47dedc36916781b6ac355501e
---
 gnu/packages/maths.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 22e2822c8c..de06e332eb 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -10826,3 +10826,23 @@ (define-public lie
     (home-page "http://www-math.univ-poitiers.fr/~maavl/LiE/")
     ;; <http://www-math.univ-poitiers.fr/~maavl/LiE/> says LGPL.
     (license license:lgpl3+)))
+
+(define-public exprtk
+  (package
+    (name "exprtk")
+    (home-page "https://www.partow.net/programming/exprtk/index.html")
+    (synopsis "C++ Mathematical Expression Parsing And Evaluation Library")
+    (description "A C++ library for mathematical expression parsing and evaluation")
+    (license license:expat)
+    (version "0.0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ArashPartow/exprtk")
+             (commit version)))
+       (sha256
+        (base32 "0pszh11w29nc256qhil51g3635n06ncf0ihg7g4h86jrhqsk7183"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan '(("exprtk.hpp" "include/"))))))

base-commit: ab43d883a0a88adbcfd3c3ab8d4c097cd9054b90
-- 
2.46.1