* [bug#67428] [PATCH v2 02/12] gnu: Add cl-syslog
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
@ 2023-11-24 17:05 ` Michal Atlas
2023-11-24 17:06 ` [bug#67428] [PATCH v2 03/12] gnu: Add cl-alexa Michal Atlas
` (10 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:05 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-cl-syslog, ecl-cl-syslog, cl-syslog): New variables.
Change-Id: I152ce685bc65f412d8e7912e3520e264d9801da0
---
gnu/packages/lisp-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 912a8c6df0..7795a60d32 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20464,6 +20464,39 @@ (define-public ecl-interface
(define-public cl-interface
(sbcl-package->cl-source-package sbcl-interface))
+(define-public sbcl-cl-syslog
+ (let ((commit "d5d46f777f0735938e6f650cf17d814b88b70305")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-syslog")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mmaul/cl-syslog")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qcz55jiqwk91b01hsahxnha884f6zf2883j2m51sqph0mvj69mh"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-alexandria sbcl-cffi sbcl-global-vars sbcl-usocket
+ sbcl-local-time))
+ (arguments
+ (list
+ #:tests? #f))
+ (synopsis "Common Lisp interface to local and remote Syslog facilities")
+ (description "cl-syslog is a Common Lisp library that provides access
+to the syslog logging facility under Unix")
+ (home-page "https://cl-syslog.common-lisp.dev/")
+ (license license:bsd-3))))
+
+(define-public ecl-cl-syslog
+ (sbcl-package->ecl-package sbcl-cl-syslog))
+
+(define-public cl-syslog
+ (sbcl-package->cl-source-package sbcl-cl-syslog))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 03/12] gnu: Add cl-alexa
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 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 04/12] gnu: Add cl-metering Michal Atlas
` (9 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:06 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-alexa, ecl-alexa, cl-alexa): New variables.
Change-Id: I3d440cee8e92fe3818a41ab7c9a70bb7f9e0cd42
---
gnu/packages/lisp-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 7795a60d32..0ba6b33dcb 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20497,6 +20497,35 @@ (define-public ecl-cl-syslog
(define-public cl-syslog
(sbcl-package->cl-source-package sbcl-cl-syslog))
+(define-public sbcl-alexa
+ (package
+ (name "sbcl-alexa")
+ (version "2.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quil-lang/alexa")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1y9jyz9gfmd02h492kf7v3mmpbhc0yfh4ka2rzd1vczq6fl8qgqv"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-alexandria sbcl-cl-ppcre sbcl-fiasco))
+ (synopsis "Lexical Analyzer Generator for Common Lisp")
+ (description
+ "ALEXA is a tool similar to lex or flex for generating lexical analyzers.
+Unlike tools like lex, however, ALEXA defines a domain-specific language
+within your Lisp program, so you don't need to invoke a separate tool.")
+ (home-page "https://github.com/quil-lang/alexa")
+ (license license:bsd-3)))
+
+(define-public ecl-alexa
+ (sbcl-package->ecl-package sbcl-alexa))
+
+(define-public cl-alexa
+ (sbcl-package->cl-source-package sbcl-alexa))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 04/12] gnu: Add cl-metering
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 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 05/12] gnu: Add cl-grnm Michal Atlas
` (8 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-metering, ecl-metering, cl-metering): New variables.
Change-Id: I7bc9ec158f7c3eb97ba0386ee8dffeeca2274b31
---
gnu/packages/lisp-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 0ba6b33dcb..153274cdc5 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20526,6 +20526,38 @@ (define-public ecl-alexa
(define-public cl-alexa
(sbcl-package->cl-source-package sbcl-alexa))
+(define-public sbcl-metering
+ (let ((commit "62dbaa5e8d29d2f213b881d740114941c2c3d1be")
+ (revision "0"))
+ (package
+ (name "sbcl-metering")
+ (version (git-version "3.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.common-lisp.net/dkochmanski/metering")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0jx3ypk8m815yp7208xkcxkvila847mvna25a2p22ihnj0ms9rn1"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-fiveam))
+ (synopsis
+ "The Metering System is a portable Common Lisp code profiling tool")
+ (description
+ "The Metering System is a portable Common Lisp code profiling tool.
+ It gathers timing and consing statistics for specified functions
+ while a program is running")
+ (home-page "https://gitlab.common-lisp.net/dkochmanski/metering")
+ (license license:cc0))))
+
+(define-public ecl-metering
+ (sbcl-package->ecl-package sbcl-metering))
+
+(define-public cl-metering
+ (sbcl-package->cl-source-package sbcl-metering))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 05/12] gnu: Add cl-grnm
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (2 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 04/12] gnu: Add cl-metering Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 06/12] gnu: Add cl-priority-queue Michal Atlas
` (7 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-cl-grnm, ecl-cl-grnm, cl-grnm): New variables.
Change-Id: I6cba8f53c8fff2323b65224a7f4107e932fde2fb
---
gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 153274cdc5..5a3b954136 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20558,6 +20558,37 @@ (define-public ecl-metering
(define-public cl-metering
(sbcl-package->cl-source-package sbcl-metering))
+(define-public sbcl-cl-grnm
+ (let ((commit "778a312e9eb3d3de7541457b516ea3d9055a15aa")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-grnm")
+ (version (git-version "0.1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quil-lang/cl-grnm")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1hb5n37n3x2ylrghcqsia2g9a6f5wg24l659jiz4ncpi5bsv4m3s"))))
+ (build-system asdf-build-system/sbcl)
+ (synopsis "Common Lisp implementation of (grid restrained) Nelder-Mead")
+ (description
+ "These common lisp sources contain two variants of the Nelder-Mead algorithm.
+The original algorithm [1] and a provably convergent,
+reliable variant by A. Bürmen et al [4],
+called the \"Grid Restrained Nelder Mead Algorithm\" (GRNMA).")
+ (home-page "https://github.com/quil-lang/cl-grnm")
+ (license license:expat))))
+
+(define-public ecl-cl-grnm
+ (sbcl-package->ecl-package sbcl-cl-grnm))
+
+(define-public cl-grnm
+ (sbcl-package->cl-source-package sbcl-cl-grnm))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 06/12] gnu: Add cl-priority-queue
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (3 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 05/12] gnu: Add cl-grnm Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 07/12] gnu: Add cl-messagepack Michal Atlas
` (6 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-priority-queue, ecl-priority-queue,
cl-priority-queue): New variables.
Change-Id: If0491c24ec009a51787dbd3abb62006ae28c7f92
---
gnu/packages/lisp-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 5a3b954136..0e98347b29 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20589,6 +20589,33 @@ (define-public ecl-cl-grnm
(define-public cl-grnm
(sbcl-package->cl-source-package sbcl-cl-grnm))
+(define-public sbcl-priority-queue
+ (let ((commit "011b8d52ef7ba7f8e6bc26608eedef222b38aaa8")
+ (revision "0"))
+ (package
+ (name "sbcl-priority-queue")
+ (version (git-version "0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dsorokin/priority-queue")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0y5a1fid8xzzl58hfdj64n8mrzq0kr06a0lnmdjpgi0czc3x0jcy"))))
+ (build-system asdf-build-system/sbcl)
+ (synopsis "Priority queue for Common Lisp")
+ (description "The implementation uses an array-based heap")
+ (home-page "https://github.com/dsorokin/priority-queue")
+ (license license:bsd-3))))
+
+(define-public ecl-priority-queue
+ (sbcl-package->ecl-package sbcl-priority-queue))
+
+(define-public cl-priority-queue
+ (sbcl-package->cl-source-package sbcl-priority-queue))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 07/12] gnu: Add cl-messagepack
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (4 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 06/12] gnu: Add cl-priority-queue Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 08/12] gnu: Add cl-permutation Michal Atlas
` (5 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-cl-messagepack, ecl-cl-messagepack,
cl-messagepack): New variables.
Change-Id: I529d438dc5b3031542b3825697581726abbac58f
---
gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 0e98347b29..2c82e188af 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20616,6 +20616,37 @@ (define-public ecl-priority-queue
(define-public cl-priority-queue
(sbcl-package->cl-source-package sbcl-priority-queue))
+(define-public sbcl-cl-messagepack
+ (let ((commit "8ff2060ed20677feef8ac01558690df0aeac30b6")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-messagepack")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mbrezu/cl-messagepack")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1hjd1q18lz46k46afz94ljflp76mfr30d6z4jrsgd26y2lc4gchc"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-flexi-streams sbcl-babel sbcl-closer-mop sbcl-cl-json))
+ (synopsis "Common Lisp implementation of Message Pack")
+ (description
+ "A Common Lisp implementation of the MessagePack (http://msgpack.org/)
+serialization/deserialization format,
+implemented according to http://wiki.msgpack.org/display/MSGPACK/Format+specification")
+ (home-page "https://github.com/mbrezu/cl-messagepack")
+ (license license:bsd-2))))
+
+(define-public ecl-cl-messagepack
+ (sbcl-package->ecl-package sbcl-cl-messagepack))
+
+(define-public cl-messagepack
+ (sbcl-package->cl-source-package sbcl-cl-messagepack))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 08/12] gnu: Add cl-permutation
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (5 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 07/12] gnu: Add cl-messagepack Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 09/12] gnu: Add cl-magicl Michal Atlas
` (4 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428
Cc: Michal Atlas, Guillaume Le Vaillant, Katherine Cox-Buday,
Munyoki Kilyungi, jgart
* gnu/packages/lisp-xyz.scm (sbcl-cl-permutation, ecl-cl-permutation,
cl-permutation): New variables.
Change-Id: Ib5cf64fa1311e76bcf710d8f5f673226a3e410b6
---
gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 2c82e188af..666ee46474 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20647,6 +20647,42 @@ (define-public ecl-cl-messagepack
(define-public cl-messagepack
(sbcl-package->cl-source-package sbcl-cl-messagepack))
+(define-public sbcl-cl-permutation
+ (let ((commit "20c10e9ca56452d2fafc3ec0984dcdf78b4f4b19")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-permutation")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/stylewarning/cl-permutation")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0i932g0k50y24hxizni6zfya4kcw77yk3b0llivm9g50s7fxj9dk"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-alexandria
+ sbcl-iterate
+ sbcl-cl-algebraic-data-type
+ sbcl-closer-mop
+ sbcl-bordeaux-fft
+ sbcl-priority-queue
+ sbcl-cl-cont
+ sbcl-fiasco))
+ (synopsis "Permutations and permutation groups in Common Lisp")
+ (description
+ "A library for operating on permutations and permutation groups")
+ (home-page "https://github.com/stylewarning/cl-permutation")
+ (license license:bsd-3))))
+
+(define-public ecl-cl-permutation
+ (sbcl-package->ecl-package sbcl-cl-permutation))
+
+(define-public cl-permutation
+ (sbcl-package->cl-source-package sbcl-cl-permutation))
+
(define-public sbcl-messagebox
(let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
(revision "1"))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 09/12] gnu: Add cl-magicl
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (6 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 08/12] gnu: Add cl-permutation Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 10/12] gnu: Add cl-rpcq Michal Atlas
` (3 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428; +Cc: Michal Atlas
* 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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 10/12] gnu: Add cl-rpcq
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (7 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 09/12] gnu: Add cl-magicl Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2023-11-24 17:07 ` [bug#67428] [PATCH v2 11/12] gnu: Add cl-quil Michal Atlas
` (2 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428; +Cc: Michal Atlas
* gnu/packages/quantum.scm (sbcl-rpcq, ecl-rpcq, cl-rpcq): New variables.
Change-Id: I49d983bd076d68013ba9775ef7582cf80027405b
---
gnu/packages/quantum.scm | 44 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm
index 3663e386ea..adc2e848ac 100644
--- a/gnu/packages/quantum.scm
+++ b/gnu/packages/quantum.scm
@@ -52,3 +52,47 @@ (define-public sbcl-magicl
(define-public cl-magicl
(sbcl-package->cl-source-package sbcl-magicl))
+
+(define-public sbcl-rpcq
+ (package
+ (name "sbcl-rpcq")
+ (version "3.10.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rigetti/rpcq")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bvppxlacvp0pfdbpn7ls1zxd127jacl225ds7lph5s8f8cyvf17"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs (list sbcl-alexandria
+ sbcl-parse-float
+ sbcl-yason
+ sbcl-cl-ppcre
+ sbcl-pzmq
+ sbcl-cl-messagepack
+ sbcl-bordeaux-threads
+ sbcl-local-time
+ sbcl-uuid
+ sbcl-cl-syslog
+ sbcl-flexi-streams
+ sbcl-trivial-backtrace
+ sbcl-fiasco))
+ (synopsis
+ "RPC framework and message specification for rigetti Quantum Cloud Services")
+ (description
+ "The asynchronous RPC client-server framework and
+message specification for Rigetti Quantum Cloud Services (QCS).
+Implements an efficient transport protocol by using ZeroMQ (ZMQ) sockets
+and MessagePack (msgpack) serialization.")
+ (home-page "https://github.com/rigetti/rpcq")
+ (license license:asl2.0)))
+
+(define-public ecl-rpcq
+ (sbcl-package->ecl-package sbcl-rpcq))
+
+(define-public cl-rpcq
+ (sbcl-package->cl-source-package sbcl-rpcq))
+
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 11/12] gnu: Add cl-quil
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (8 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 10/12] gnu: Add cl-rpcq Michal Atlas
@ 2023-11-24 17:07 ` 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
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428; +Cc: Michal Atlas
* gnu/packages/quantum.scm (sbcl-cl-quil, cl-quil): New variables.
Change-Id: Ief158f0e6e9ac47f9d4ff151d5ab8f551a6f37b4
---
gnu/packages/quantum.scm | 46 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm
index adc2e848ac..01f1d0e8f9 100644
--- a/gnu/packages/quantum.scm
+++ b/gnu/packages/quantum.scm
@@ -96,3 +96,49 @@ (define-public ecl-rpcq
(define-public cl-rpcq
(sbcl-package->cl-source-package sbcl-rpcq))
+(define-public sbcl-cl-quil
+ (package
+ (name "sbcl-cl-quil")
+ (version "1.26.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quil-lang/quilc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1s99lk456sw9hhsx5cf3x9r97iw9s3ydqsd94zz3bjnq77wmkhz5"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ (list
+ ;; Requires cyclic dependency with qvm
+ #:tests? #f))
+ (inputs (list sbcl-alexa
+ sbcl-cl-yacc
+ sbcl-alexandria
+ sbcl-parse-float
+ sbcl-abstract-classes
+ sbcl-split-sequence
+ sbcl-cl-algebraic-data-type
+ sbcl-cl-permutation
+ sbcl-trivial-garbage
+ sbcl-magicl
+ sbcl-global-vars
+ sbcl-salza2
+ sbcl-optima
+ sbcl-cl-grnm
+ sbcl-yason
+ sbcl-cl-heap
+ sbcl-queues))
+ (synopsis "The optimizing Quil compiler")
+ (description "Quil is the quantum instruction language,
+originally developed at Rigetti Computing.
+In Quil quantum algorithms are expressed using
+Quil's standard gates and instructions")
+ (home-page "https://github.com/quil-lang/quilc")
+ (license license:asl2.0)))
+
+(define-public cl-quil
+ (sbcl-package->cl-source-package sbcl-cl-quil))
+
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [bug#67428] [PATCH v2 12/12] gnu: Add cl-qvm
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (9 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 11/12] gnu: Add cl-quil Michal Atlas
@ 2023-11-24 17:07 ` Michal Atlas
2024-01-28 16:36 ` bug#67428: [PATCH v2 01/12] gnu: Add cl-interface Guillaume Le Vaillant
11 siblings, 0 replies; 18+ messages in thread
From: Michal Atlas @ 2023-11-24 17:07 UTC (permalink / raw)
To: 67428; +Cc: Michal Atlas
* gnu/packages/quantum.scm: (sbcl-qvm, cl-qvm): New variables.
Change-Id: Ife0bdcfdce01dc6ca4a7115cb54e093a76729527
---
gnu/packages/quantum.scm | 64 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm
index 01f1d0e8f9..1cd980cb3f 100644
--- a/gnu/packages/quantum.scm
+++ b/gnu/packages/quantum.scm
@@ -142,3 +142,67 @@ (define-public sbcl-cl-quil
(define-public cl-quil
(sbcl-package->cl-source-package sbcl-cl-quil))
+(define-public sbcl-qvm
+ (package
+ (name "sbcl-qvm")
+ (version "1.17.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quil-lang/qvm")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1cvmkqfcy7rv5jlim4kh4dvqhd3jk6mw1kwrphaqghjymrf72yp8"))))
+ (build-system asdf-build-system/sbcl)
+ (outputs '("out" "bin"))
+ (inputs (list sbcl-alexandria
+ sbcl-abstract-classes
+ sbcl-ieee-floats
+ sbcl-lparallel
+ sbcl-magicl
+ sbcl-trivial-garbage
+ sbcl-global-vars
+ sbcl-cffi
+ sbcl-static-vectors
+ sbcl-trivial-garbage
+ sbcl-cl-quil
+ sbcl-mt19937
+ sbcl-trivial-features
+
+ ;; qvm-app
+ sbcl-command-line-arguments
+ sbcl-trivial-benchmark
+ sbcl-hunchentoot
+ sbcl-slime-swank
+ sbcl-cl-syslog))
+ (arguments
+ (list
+ #:asd-systems ''("qvm" "qvm-app")
+ ;; Requires cyclic dependency with quilc
+ #:tests? #f
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-git-dependency
+ (lambda _
+ (substitute* "app/src/qvm-app-version.lisp"
+ (("\\(git-hash '#:qvm-app\\)")
+ "\"unknown\""))))
+ (add-after 'create-asdf-configuration 'build-program
+ (lambda* (#:key outputs #:allow-other-keys)
+ (build-program (string-append (assoc-ref outputs "bin")
+ "/bin/qvm")
+ outputs
+ #:dependencies '("qvm-app")
+ #:entry-program '((qvm-app::asdf-entry-point))
+ #:compress? #t))))))
+
+ (synopsis "The high-performance and featureful Quil simulator")
+ (description
+ "This is the official Quil-Lang Quantum Virtual Machine (QVM),
+a flexible and efficient simulator for Quil")
+ (home-page "https://github.com/quil-lang/qvm")
+ (license license:asl2.0)))
+
+(define-public cl-qvm
+ (sbcl-package->cl-source-package sbcl-qvm))
--
2.41.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#67428: [PATCH v2 01/12] gnu: Add cl-interface
2023-11-24 17:05 ` [bug#67428] [PATCH v2 " Michal Atlas
` (10 preceding siblings ...)
2023-11-24 17:07 ` [bug#67428] [PATCH v2 12/12] gnu: Add cl-qvm Michal Atlas
@ 2024-01-28 16:36 ` Guillaume Le Vaillant
11 siblings, 0 replies; 18+ messages in thread
From: Guillaume Le Vaillant @ 2024-01-28 16:36 UTC (permalink / raw)
To: Michal Atlas; +Cc: 67428-done
[-- Attachment #1: Type: text/plain, Size: 404 bytes --]
Patches applied as b5a55ba5e972278ea62064be807cf4d039ce3daa and
following with some modifications:
- some minor changes to some synopses, descriptions, licenses, etc
- dependencies used only for tests (like sbcl-fiasco) moved to the
'native-inputs' field instead of 'inputs'
- magicl package moved to "lisp-xyz.scm" as it is a generic algebra
library and not specific to quantum things.
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread