From d7952e26edb3732516f1e1743383a4ef68832661 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 5 Dec 2016 12:18:23 -0600 Subject: [PATCH] gnu: Add guile-fibers. * gnu/packages/guile.scm (guile-fibers): New variable. --- gnu/packages/guile.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index 4572544..4568434 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès ;;; Copyright © 2014, 2015 Mark H Weaver -;;; Copyright © 2015 Christopher Allan Webber +;;; Copyright © 2015, 2016 Christopher Allan Webber ;;; Copyright © 2016 Alex Sassmannshausen ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2016 Erik Edrosa @@ -1412,4 +1412,32 @@ type system, elevating types to first-class status.") dictionary and suggesting spelling corrections.") (license gpl3+))) +(define-public guile-fibers + (package + (name "guile-fibers") + (version "0.3.0") + (source (origin + (method url-fetch) + (uri (string-append "https://wingolog.org/pub/fibers/fibers-" + version ".tar.gz")) + (sha256 + (base32 + "1dc6d2ncclrd7napzf5b0mbw3xxsv43kb471ciz9v7r22277n9m7")))) + (build-system gnu-build-system) + (native-inputs + `(("texinfo" ,texinfo) + ("pkg-config" ,pkg-config))) + (inputs + `(("guile" ,guile-next))) + (synopsis "Concurrent ML-like concurrency for Guile") + (description + "Fibers adds concurrency to Guile, inspired by systems like Concurrent ML +and Erlang. Fibers are lightweight \"thread\"-like objects which communicate +through channels. + +Note that Fibers makes use of some Guile 2.1/2.2-specific features and +is not available for Guile 2.0.") + (home-page "https://github.com/wingo/fibers") + (license lgpl3+))) + ;;; guile.scm ends here -- 2.10.2