diff options
author | Vinicius Monego <[email protected]> | 2025-02-09 01:52:31 +0000 |
---|---|---|
committer | Andreas Enge <[email protected]> | 2025-02-10 14:27:57 +0100 |
commit | afdb696d37638944470c7a082cb5b49b462d7864 (patch) | |
tree | 5b63ee835cca19d133f1681cdf26c9b32c81b168 /gnu/packages/algebra.scm | |
parent | a30b2431bf315d96c32c6acf68f6fb134852c4d5 (diff) |
gnu: Add libsemigroups.
* gnu/packages/algebra.scm (libsemigroups): New variable.
Change-Id: I6e929fe6b479c7e7c2b5b4632759bd781af3c927
Signed-off-by: Andreas Enge <[email protected]>
Co-authored-by: Andreas Enge <[email protected]>
Diffstat (limited to 'gnu/packages/algebra.scm')
-rw-r--r-- | gnu/packages/algebra.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 647cfa19b0..c3b8f04c5c 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -63,6 +63,7 @@ #:use-module (gnu packages ocaml) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -1836,6 +1837,46 @@ no more than about 20 bits long).") (@dfn{DHT}).") (license license:gpl2+))) +(define-public libsemigroups + (package + (name "libsemigroups") + (version "2.7.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libsemigroups/libsemigroups") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pk7887g4in7fskl0da8l2xppv293jm31ykacsss3vs5fff2pw7a")))) + (build-system gnu-build-system) + (arguments + (list + ;; FIXME: libsemigroup's build system doesn't have an option to use + ;; external HPCombi. Try to work it around in the future and skip + ;; support for now. + #:configure-flags #~(list "--enable-fmt=yes" + "--enable-hpcombi=no" + "--with-external-eigen=yes" + "--with-external-fmt=yes") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-version + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "etc/version-number.sh" + (("/bin/sh") + (search-input-file inputs "/bin/bash")))))))) + (native-inputs + (list autoconf automake libtool pkg-config)) + (inputs (list eigen fmt)) + (home-page "https://github.com/libsemigroups/libsemigroups") + (synopsis "Library for semigroups and monoids") + (description + "@code{libsemigroups} is a C++14 library containing implementations of +several algorithms for computing finite, and finitely presented, +semigroups and monoids.") + (license license:gpl3+))) + (define-public sollya (package (name "sollya") |