From: Michal Atlas <michal_atlas+git@posteo.net>
To: 67428@debbugs.gnu.org
Cc: Michal Atlas <michal_atlas+git@posteo.net>
Subject: [bug#67428] [PATCH v2 09/12] gnu: Add cl-magicl
Date: Fri, 24 Nov 2023 17:07:14 +0000 [thread overview]
Message-ID: <f28ea6902ec0f984d07f10dd14e67a839ba37c0e.1700844983.git.michal_atlas+git@posteo.net> (raw)
In-Reply-To: <d9c4cec2b7a19c9ee13a5758b94ed5d0c6dcd7c3.1700844983.git.michal_atlas+git@posteo.net>
* gnu/packages/quantum.scm: New file.
* gnu/packages/quantum.scm: (sbcl-magicl, cl-magicl): New variables..
This package requires commencement, which already depends on
lisp-xyz in a way that breaks if they're mutually used,
this library is mainly the dependency of QVM (Quil Quantum Virtual Machine),
so I moved it into this separate file.
Change-Id: I4f1d5e6afe3a764c90953d2ee9b21bf3a1f90b26
---
gnu/packages/quantum.scm | 54 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 gnu/packages/quantum.scm
diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm
new file mode 100644
index 0000000000..3663e386ea
--- /dev/null
+++ b/gnu/packages/quantum.scm
@@ -0,0 +1,54 @@
+(define-module (gnu packages quantum)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (gnu packages commencement)
+ #:use-module (gnu packages lisp-check)
+ #:use-module (gnu packages lisp-xyz)
+ #:use-module (gnu packages maths)
+ #:use-module (guix build-system asdf)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix packages))
+
+(define-public sbcl-magicl
+ (package
+ (name "sbcl-magicl")
+ (version "0.9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quil-lang/magicl")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0x9p55qin399jhr5md88nij8fv78b64xjhww7ys364pkjnx8ak9v"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-alexandria
+ sbcl-abstract-classes
+ sbcl-policy-cond
+ sbcl-interface
+ sbcl-static-vectors
+ sbcl-trivial-garbage
+ lapack
+ gfortran-toolchain
+ sbcl-fiasco))
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((lapack (assoc-ref inputs "lapack")))
+ (substitute* "src/extensions/blas/load-libs.lisp"
+ (("libblas.so")
+ (string-append lapack "/lib/libblas.so")))
+ (substitute* "src/extensions/lapack/load-libs.lisp"
+ (("liblapack.so")
+ (string-append lapack "/lib/liblapack.so")))))))))
+ (synopsis "Matrix Algebra proGrams In Common Lisp")
+ (description "Matrix Algebra proGrams In Common Lisp by Rigetti Computing.
+(née FLAIL: Finally, Linear Algebra In Lisp!)")
+ (home-page "https://github.com/quil-lang/magicl")
+ (license license:asl2.0)))
+
+(define-public cl-magicl
+ (sbcl-package->cl-source-package sbcl-magicl))
--
2.41.0
next prev parent reply other threads:[~2023-11-24 17:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 10:28 [bug#67428] [PATCH 00/12] gnu: Add Quil Quantum VM (QVM) and CL dependencies Michal Atlas
2023-11-24 16:19 ` [bug#67428] [PATCH 01/12] gnu: Add cl-interface Michal Atlas
2023-11-24 16:22 ` jgart via Guix-patches via
2024-01-24 17:57 ` Guillaume Le Vaillant
2024-01-25 0:28 ` jgart via Guix-patches via
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
2023-11-24 17:05 ` [bug#67428] [PATCH v2 02/12] gnu: Add cl-syslog Michal Atlas
2023-11-24 17:06 ` [bug#67428] [PATCH v2 03/12] gnu: Add cl-alexa Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 04/12] gnu: Add cl-metering Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 05/12] gnu: Add cl-grnm Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 06/12] gnu: Add cl-priority-queue Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 07/12] gnu: Add cl-messagepack Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 08/12] gnu: Add cl-permutation Michal Atlas
2023-11-24 17:07 ` Michal Atlas [this message]
2023-11-24 17:07 ` [bug#67428] [PATCH v2 10/12] gnu: Add cl-rpcq Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 11/12] gnu: Add cl-quil Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 12/12] gnu: Add cl-qvm Michal Atlas
2024-01-28 16:36 ` bug#67428: [PATCH v2 01/12] gnu: Add cl-interface Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f28ea6902ec0f984d07f10dd14e67a839ba37c0e.1700844983.git.michal_atlas+git@posteo.net \
--to=michal_atlas+git@posteo.net \
--cc=67428@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.