~ruther/guix-local

afdb696d37638944470c7a082cb5b49b462d7864 — Vinicius Monego 1 year, 19 days ago a30b243
gnu: Add libsemigroups.

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

Change-Id: I6e929fe6b479c7e7c2b5b4632759bd781af3c927
Signed-off-by: Andreas Enge <andreas@enge.fr>
Co-authored-by: Andreas Enge <andreas@enge.fr>
1 files changed, 41 insertions(+), 0 deletions(-)

M gnu/packages/algebra.scm
M gnu/packages/algebra.scm => gnu/packages/algebra.scm +41 -0
@@ 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")