Skip to content

Commit

Permalink
guix: Define variants for Guile 2.2 and libevent.
Browse files Browse the repository at this point in the history
* .guix/modules/fibers-package.scm (guile2.2-fibers)
(guile-fibers/libevent): New variables.
  • Loading branch information
civodul committed Nov 23, 2024
1 parent 50f0d97 commit 2211be7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .guix/modules/fibers-package.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
;; Fibers: cooperative, event-driven user-space threads.

;;;; Copyright (C) 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
;;;; Copyright (C) 2024 Ludovic Courtès <ludo@gnu.org>
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -56,4 +57,18 @@ communication between fibers.")
(home-page "https://github.com/wingo/fibers")
(license lgpl3+)))

(define-public guile2.2-fibers
(package/inherit guile-fibers
(name "guile2.2-fibers")
(inputs (modify-inputs (package-inputs guile-fibers)
(replace "guile" guile-2.2)))))

(define-public guile-fibers/libevent
(package/inherit guile-fibers
(name "guile-fibers-on-libevent")
(arguments
(list #:configure-flags #~(list "--disable-epoll")))
(inputs (modify-inputs (package-inputs guile-fibers)
(append libevent)))))

guile-fibers

0 comments on commit 2211be7

Please sign in to comment.