Subject: [bug#76150] [PATCH 01/16] gnu: Add normaliz.

From: Vinicius Monego <[email-masked]>
Date: Sun, 9 Feb 2025 01:52:18 +0000

* gnu/packages/algebra.scm (normaliz): New variable.

Change-Id: I3e0936c598b0a5fdd88af9d22280137d42c45cc5
---
 gnu/packages/algebra.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index afca739766..f1d4820dcb 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2020 Björn Höfling <[email-masked]>
 ;;; Copyright © 2020 Jakub Kądziołka <[email-masked]>
 ;;; Copyright © 2020 Vincent Legoll <[email-masked]>
-;;; Copyright © 2020, 2021, 2023, 2024 Vinicius Monego <[email-masked]>
+;;; Copyright © 2020, 2021, 2023, 2024, 2025 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2021 Lars-Dominik Braun <[email-masked]>
 ;;; Copyright © 2022 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2023 Mehmet Tekman <[email-masked]>
@@ -1017,6 +1017,32 @@ (define-public ginac
 extends it by a set of algebraic capabilities.")
     (license license:gpl2+)))
 
+(define-public normaliz
+  (package
+    (name "normaliz")
+    (version "3.10.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/normaliz/Normaliz")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1smla96wjyv5ygg77ps9np6bfzp2qynq8vd1msybabi4621cnrma"))))
+    (build-system gnu-build-system)
+    (native-inputs (list autoconf automake libtool pkg-config))
+    ;; Flint is optional. TODO: Try to build with nauty and cocoalib support.
+    ;; The configure script fails to find nauty.h.
+    (inputs (list flint gmp))
+    (home-page "https://www.normaliz.uni-osnabrueck.de/")
+    (synopsis "Tool for discrete convex geometry")
+    (description "Normaliz is a tool for computations in affine monoids,
+vector configurations, rational polyhedra and rational cones.  Normaliz now
+computes rational and algebraic polyhedra, i.e., polyhedra defined over real
+algebraic extensions of QQ.")
+    (license license:gpl3+)))
+
 (define-public eigen
   (package
     (name "eigen")
-- 
2.48.1