From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 09/15] gnu: Add ghc-hmatrix. Date: Mon, 17 Oct 2016 03:41:12 +0100 Message-ID: <87insrofxz.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvxrb-0003Xd-8h for guix-devel@gnu.org; Sun, 16 Oct 2016 22:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvxrY-0007T6-5V for guix-devel@gnu.org; Sun, 16 Oct 2016 22:41:19 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37533) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvxrY-0007SS-1O for guix-devel@gnu.org; Sun, 16 Oct 2016 22:41:16 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Federico Beffa , Guix-devel Federico Beffa writes: > From 9cbbc66e111c5446f818ce1f9aa8f1bc52300bec Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Sun, 16 Oct 2016 16:25:26 +0200 > Subject: [PATCH 09/15] gnu: Add ghc-hmatrix. > > * gnu/packages/haskell.scm (ghc-hmatrix): New variable. > --- > gnu/packages/haskell.scm | 33 ++++++++++++++++++++++++++++++++- > 1 file changed, 32 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index 50b09ef..4203227 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -1,5 +1,5 @@ > ;;; GNU Guix --- Functional package management for GNU > -;;; Copyright =C2=A9 2015 Federico Beffa > +;;; Copyright =C2=A9 2015, 2016 Federico Beffa > ;;; Copyright =C2=A9 2015 Sini=C5=A1a Bi=C4=91in > ;;; Copyright =C2=A9 2015 Paul van der Walt > ;;; Copyright =C2=A9 2015 Eric Bavier > @@ -44,6 +44,7 @@ > #:use-module (gnu packages libffi) > #:use-module (gnu packages libedit) > #:use-module (gnu packages lua) > + #:use-module (gnu packages maths) > #:use-module (gnu packages multiprecision) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages python) > @@ -7619,4 +7620,34 @@ Storable instance for Complex which is binary comp= atible with C99, C++ > and Fortran complex data types.") > (license license:bsd-3))) >=20=20 > +(define-public ghc-hmatrix > + (package > + (name "ghc-hmatrix") > + (version "0.17.0.2") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/hmatrix/hmatrix-" > + version ".tar.gz")) > + (sha256 > + (base32 "1fgsrh2y9y971pzrd3767rg97bjr1ghpdvwmn1nn65s90rc9bv98"))= )) > + (build-system haskell-build-system) > + (inputs > + `(("ghc-random" ,ghc-random) > + ("ghc-split" ,ghc-split) > + ("ghc-storable-complex" ,ghc-storable-complex) > + ("ghc-vector" ,ghc-vector) > + ;;("openblas" ,openblas) > + ("lapack" ,lapack))) > + ;;; Guix's OpenBLAS is built with the floag "NO_LAPACK=3D1" which > + ;;; disables inclusion of the LAPACK functions. ^^^ Only two semicolons here. Also s/floag/flag. > + ;;(arguments `(#:configure-flags '("--flags=3Dopenblas"))) > + (home-page "https://github.com/albertoruiz/hmatrix") > + (synopsis "Haskell numeric linear algebra library") > + (description "The HMatrix package provices a Haskell library for > +dealing with linear systems, matrix decompositions, and other > +numerical computations based on BLAS and LAPACK.") > + (license license:bsd-3))) > + > ;;; haskell.scm ends here > --=20 > 2.7.4