Subject: [PATCH v2 05/12] gnu: Add cl-grnm

From: Michal Atlas <[email-masked]>
Date: Fri, 24 Nov 2023 17:07:10 +0000

* gnu/packages/lisp-xyz.scm (sbcl-cl-grnm, ecl-cl-grnm, cl-grnm): New variables.

Change-Id: I6cba8f53c8fff2323b65224a7f4107e932fde2fb
---
 gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 153274cdc5..5a3b954136 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20558,6 +20558,37 @@ (define-public ecl-metering
 (define-public cl-metering
   (sbcl-package->cl-source-package sbcl-metering))
 
+(define-public sbcl-cl-grnm
+  (let ((commit "778a312e9eb3d3de7541457b516ea3d9055a15aa")
+        (revision "0"))
+    (package
+      (name "sbcl-cl-grnm")
+      (version (git-version "0.1.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/quil-lang/cl-grnm")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1hb5n37n3x2ylrghcqsia2g9a6f5wg24l659jiz4ncpi5bsv4m3s"))))
+      (build-system asdf-build-system/sbcl)
+      (synopsis "Common Lisp implementation of (grid restrained) Nelder-Mead")
+      (description
+       "These common lisp sources contain two variants of the Nelder-Mead algorithm.
+The original algorithm [1] and a provably convergent,
+reliable variant by A. Bürmen et al [4],
+called the \"Grid Restrained Nelder Mead Algorithm\" (GRNMA).")
+      (home-page "https://github.com/quil-lang/cl-grnm")
+      (license license:expat))))
+
+(define-public ecl-cl-grnm
+  (sbcl-package->ecl-package sbcl-cl-grnm))
+
+(define-public cl-grnm
+  (sbcl-package->cl-source-package sbcl-cl-grnm))
+
 (define-public sbcl-messagebox
   (let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
         (revision "1"))
-- 
2.41.0