Subject: [PATCH] gnu: nlopt: Update to 2.10.0.

From: Andy Tai <[email-masked]>
Date: Sun, 15 Jun 2025 00:08:00 -0700

* gnu/packages/maths.scm (nlopt): Update to 2.10.0.
[arguments]<#:configure-flags>: Turn on building tests.

Change-Id: I78106ae3379b2cb3c896dcc1314da966fcd0b9a9
---
 gnu/packages/maths.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e6306c081d..2f6f7f37f6 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2590,7 +2590,7 @@ (define-public n2p2
 (define-public nlopt
   (package
     (name "nlopt")
-    (version "2.7.1")
+    (version "2.10.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2598,10 +2598,12 @@ (define-public nlopt
                     (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
-               (base32 "1xpdza28i8w441fwv6a5f3qk4zi7ys6ws9fx6kr5ny27dfdz6rr1"))))
+               (base32 "04257r7a1bjmm6hznf9v6fimz2p93dk745sf89wmxzhg3rh0ak44"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:phases
+     `(#:configure-flags
+          (list "-DNLOPT_TESTS=ON")
+      #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'set-libnlopt-file-name
            (lambda* (#:key outputs #:allow-other-keys)

base-commit: cf09bda7c52664b99ad2928e757cbac0e037829c
-- 
2.43.0