[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/15: gnu: Add cl-green-threads.
From: |
guix-commits |
Subject: |
15/15: gnu: Add cl-green-threads. |
Date: |
Fri, 17 Jan 2020 07:47:03 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 8ea00edfccba9bffbbca6ffbf69f2f20d0b32354
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Fri Jan 17 12:00:02 2020 +0100
gnu: Add cl-green-threads.
* gnu/packages/lisp-xyz.scm (sbcl-green-threads, cl-green-threads,
ecl-green-threads): New variables.
---
gnu/packages/lisp-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index ad28cd7..9dc30a3 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -9661,3 +9661,51 @@ to cl-async.")
(define-public ecl-cl-async-future
(sbcl-package->ecl-package sbcl-cl-async-future))
+
+(define-public sbcl-green-threads
+ (let ((commit "fff5ebecb441a37e5c511773716aafd84a3c5840")
+ (revision "1"))
+ (package
+ (name "sbcl-green-threads")
+ (version (git-version "0.3" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/thezerobit/green-threads.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1czw7nr0dwfps76h8hjvglk1wdh53yqbfbvv30whwbgqx33iippz"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ `(("cl-async-future" ,sbcl-cl-async-future)
+ ("cl-cont" ,sbcl-cl-cont)))
+ (native-inputs
+ `(("prove" ,sbcl-prove)))
+ (arguments
+ `(;; TODO: Fix the tests. They fail with:
+ ;; "The function BLACKBIRD::PROMISE-VALUES is undefined"
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "green-threads-test.asd"
+ (("cl-test-more")
+ "prove"))
+ #t)))))
+ (synopsis "Cooperative multitasking library for Common Lisp")
+ (description
+ "This library allows for cooperative multitasking with help of cl-cont
+for continuations. It tries to mimic the API of bordeaux-threads as much as
+possible.")
+ (home-page "https://github.com/thezerobit/green-threads")
+ (license license:bsd-3))))
+
+(define-public cl-green-threads
+ (sbcl-package->cl-source-package sbcl-green-threads))
+
+(define-public ecl-green-threads
+ (sbcl-package->ecl-package sbcl-green-threads))
- 05/15: gnu: Add cl-coroutine., (continued)
- 05/15: gnu: Add cl-coroutine., guix-commits, 2020/01/17
- 06/15: gnu: Add cl-vom., guix-commits, 2020/01/17
- 11/15: gnu: Add cl-async-repl., guix-commits, 2020/01/17
- 14/15: gnu: Add cl-async-future., guix-commits, 2020/01/17
- 07/15: gnu: Add cl-libuv., guix-commits, 2020/01/17
- 08/15: gnu: Add cl-async-base., guix-commits, 2020/01/17
- 12/15: gnu: Add cl-async-ssl., guix-commits, 2020/01/17
- 09/15: gnu: Add cl-async-util., guix-commits, 2020/01/17
- 03/15: gnu: Add cl-fset., guix-commits, 2020/01/17
- 10/15: gnu: Add cl-async., guix-commits, 2020/01/17
- 15/15: gnu: Add cl-green-threads.,
guix-commits <=
- 13/15: gnu: Add cl-blackbird., guix-commits, 2020/01/17