From 8e6c9005b4be6f9208ccf85c58cc4a7693fc2397 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 3 Sep 2020 18:07:13 +0200 Subject: gnu: Add bitlbee-purple. * gnu/packages/messaging.scm (bitlbee-purple): New variable. --- gnu/packages/messaging.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/messaging.scm') diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 45b0f3265b..02afcc77fc 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -228,6 +228,29 @@ (define-public bitlbee (home-page "https://www.bitlbee.org/") (license (list license:gpl2+ license:bsd-2)))) +(define-public bitlbee-purple + ;; This variant uses libpurple, which provides support for more protocols at + ;; the expense of a much bigger closure. + (package/inherit bitlbee + (name "bitlbee-purple") + (synopsis "IRC to instant messaging gateway (using Pidgin's libpurple)") + (inputs `(("purple" ,pidgin) + ,@(package-inputs bitlbee))) + (arguments + (substitute-keyword-arguments (package-arguments bitlbee) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (replace 'configure ;add "--purple=1" + (lambda* (#:key outputs #:allow-other-keys) + (invoke "./configure" + (string-append "--prefix=" + (assoc-ref outputs "out")) + "--otr=1" "--purple=1"))))) + ((#:tests? _ #t) + ;; XXX: Tests fail to link, and ./configure says that it's "supported + ;; on a best-effort basis" anyway. + #f))))) + (define-public bitlbee-discord (package (name "bitlbee-discord") -- cgit v1.2.3