* [bug#58695] [PATCH v2] gnu: Add cl-eris.
2022-10-22 0:31 [bug#58695] [PATCH] gnu: Add cl-eris jgart via Guix-patches via
@ 2022-10-22 0:36 ` jgart via Guix-patches via
2022-10-24 12:15 ` bug#58695: " Guillaume Le Vaillant
0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2022-10-22 0:36 UTC (permalink / raw)
To: 58695; +Cc: jgart
* gnu/packages/lisp-xyz.scm (cl-eris, sbcl-eris): New variables.
Here's v2.
ecl version fails ;()
ommon.lisp.
;;;
;;;
;;; Compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/conditions.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; End of Pass 1.
;;; Finished compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/conditions.lisp.
;;;
;;;
;;; Compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/base32.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; Warning:
;;; in file base32.lisp, position 1819
;;; at (DEFUN READ-WORD ...)
;;; ! Unsupported CONS type C::BYTE-SPECIFIER. Replacing it with T.
;;; End of Pass 1.
;;; Warning:
;;; in file base32.lisp, position 1819
;;; at (DEFUN READ-WORD ...)
;;; ! Unsupported CONS type C::BYTE-SPECIFIER. Replacing it with T.
;;; Finished compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/base32.lisp.
;;;
;;; Warning: Lisp compilation had style-warnings while
compiling #<cl-source-file "eris" "src" "base32">
;;;
;;; Compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/eris.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; Warning:
;;; in file eris.lisp, position 3161
;;; at (DEFUN ENCRYPT-INTERNAL-BLOCK ...)
;;; ! Declaration of type
;;; (SIMPLE-ARRAY (UNSIGNED-BYTE 8))
;;; was found for not bound variable SECRET.
;;; Warning:
;;; in file eris.lisp, position 11158
;;; at (DEFUN ERIS-CREATE-TREE ...)
;;; ! Declaration of type
;;; (SIMPLE-ARRAY (UNSIGNED-BYTE 8) (32))
;;; was found for not bound variable SECRET.
;;; End of Pass 1.
;;; Finished compiling /gnu/store/cl2a3pwqhh5wz09rb4vpqkwyhfd2nhka-ecl-eris-0.1/share/common-lisp/ecl/eris/src/eris.lisp.
;;;
;;; Warning: Lisp compilation had style-warnings while
compiling #<cl-source-file "eris" "src" "eris">
An error occurred during initialization:
In method definition for ERIS-ENCODE, found an invalid specializer (SIMPLE-ARRAY
T T).
error: in phase 'build': uncaught exception:
all best,
jgart
---
gnu/packages/lisp-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b474a0f2b7..dc4b7b197a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -21850,6 +21850,44 @@ (define-public cl-simple-routes
(define-public ecl-simple-routes
(sbcl-package->ecl-package sbcl-simple-routes))
+(define-public sbcl-eris
+ (package
+ (name "sbcl-eris")
+ (version "0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.ykonai.net/eris-cl")
+ (commit version)))
+ (file-name (git-file-name "eris" version))
+ (sha256
+ (base32 "0qm74ld70aic39giamvix88500flv86047a82rx9gkjwaisf58rc"))))
+ (build-system asdf-build-system/sbcl)
+ (native-inputs (list sbcl-fiveam))
+ (inputs
+ (list sbcl-alexandria
+ sbcl-serapeum
+ sbcl-trivial-gray-streams
+ sbcl-function-cache
+ sbcl-bordeaux-threads
+ sbcl-osicat
+ sbcl-mmap
+ sbcl-ironclad))
+ (home-page "https://git.ykonai.net/eris-cl/")
+ (synopsis "ERIS implementation for Common Lisp")
+ (description
+"Common Lisp implementation of the Encoding for Robust Immutable Storage
+specification (ERIS).")
+ (license license:lgpl3+)))
+
+(define-public ecl-eris
+ (sbcl-package->ecl-package sbcl-eris))
+
+(define-public cl-eris
+ (sbcl-package->cl-source-package sbcl-eris))
+
+
(define-public sbcl-cl-ipfs-api2
(let ((commit "3ee52c80023bcc662f7d01276ea0a5814bd0011b")
(revision "0"))
--
2.38.1
^ permalink raw reply related [flat|nested] 3+ messages in thread