From eb1ebabffe8298495bdfbb5011c2d672541d02f3 Mon Sep 17 00:00:00 2001 From: Brett Gilio Date: Fri, 3 Jan 2020 16:46:48 -0600 Subject: gnu: Add ocaml-lacaml. * gnu/packages/ocaml.scm (ocaml-lacaml): New variable. --- gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index c9454a52c5..2e8072cbbe 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2018, 2019 Gabriel Hondet ;;; Copyright © 2018 Kei Kebreau ;;; Copyright © 2019 Ricardo Wurmus +;;; Copyright © 2020 Brett Gilio ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,6 +32,7 @@ (define-module (gnu packages ocaml) #:use-module (gnu packages) + #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) @@ -5177,3 +5179,34 @@ Text inside doc comments is marked up in ocamldoc syntax. Odoc's main advantage over ocamldoc is an accurate cross-referencer, which handles the complexity of the OCaml module system.") (license license:isc))) + +(define-public ocaml-lacaml + (package + (name "ocaml-lacaml") + (version "11.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mmottl/lacaml.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c")))) + (build-system dune-build-system) + (arguments + `(#:tests? #f)) ; No test target. + (native-inputs + `(("openblas" ,openblas) + ("lapack" ,lapack) + ("ocaml-base" ,ocaml-base) + ("ocaml-stdio" ,ocaml-stdio))) + (home-page "https://mmottl.github.io/lacaml/") + (synopsis + "OCaml-bindings to BLAS and LAPACK") + (description + "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and +LAPACK-library (Linear Algebra routines). It also contains many additional +convenience functions for vectors and matrices.") + (license license:lgpl2.1))) -- cgit v1.2.3