1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
3 ;;; Copyright © 2014, 2017 Julien Lepiller <julien@lepiller.eu>
4 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
9 ;;; Copyright © 2016 Andy Patterson <ajpatter@uwaterloo.ca>
10 ;;; Copyright © 2016, 2017, 2018, 2019 Clément Lassieur <clement@lassieur.org>
11 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
12 ;;; Copyright © 2017, 2018, 2020, 2021 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
14 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
15 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
16 ;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
18 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
19 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
20 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
21 ;;; Copyright © 2020, 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
22 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
23 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
24 ;;; Copyright © 2020 Reza Alizadeh Majd <r.majd@pantherx.org>
25 ;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
26 ;;; Copyright © 2020 Mason Hock <chaosmonk@riseup.net>
27 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
28 ;;; Copyright © 2020, 2022 Raghav Gururajan <rg@raghavgururajan.name>
29 ;;; Copyright © 2020, 2021 Robert Karszniewicz <avoidr@posteo.de>
30 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
31 ;;; Copyright © 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
32 ;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
33 ;;; Copyright © 2021 jgart <jgart@dismail.de>
34 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
35 ;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
36 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
37 ;;; Copyright © 2022 Jack Hill <jackhill@jackhill.us>
39 ;;; This file is part of GNU Guix.
41 ;;; GNU Guix is free software; you can redistribute it and/or modify it
42 ;;; under the terms of the GNU General Public License as published by
43 ;;; the Free Software Foundation; either version 3 of the License, or (at
44 ;;; your option) any later version.
46 ;;; GNU Guix is distributed in the hope that it will be useful, but
47 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
48 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 ;;; GNU General Public License for more details.
51 ;;; You should have received a copy of the GNU General Public License
52 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
54 (define-module (gnu packages messaging)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages admin)
57 #:use-module (gnu packages aidc)
58 #:use-module (gnu packages aspell)
59 #:use-module (gnu packages audio)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages avahi)
62 #:use-module (gnu packages base)
63 #:use-module (gnu packages bash)
64 #:use-module (gnu packages bison)
65 #:use-module (gnu packages boost)
66 #:use-module (gnu packages check)
67 #:use-module (gnu packages code)
68 #:use-module (gnu packages compression)
69 #:use-module (gnu packages cpp)
70 #:use-module (gnu packages crypto)
71 #:use-module (gnu packages curl)
72 #:use-module (gnu packages cyrus-sasl)
73 #:use-module (gnu packages databases)
74 #:use-module (gnu packages docbook)
75 #:use-module (gnu packages documentation)
76 #:use-module (gnu packages enchant)
77 #:use-module (gnu packages fontutils)
78 #:use-module (gnu packages freedesktop)
79 #:use-module (gnu packages gettext)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages gnome)
82 #:use-module (gnu packages gnupg)
83 #:use-module (gnu packages golang)
84 #:use-module (gnu packages gperf)
85 #:use-module (gnu packages graphviz)
86 #:use-module (gnu packages gstreamer)
87 #:use-module (gnu packages gtk)
88 #:use-module (gnu packages guile)
89 #:use-module (gnu packages icu4c)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages kde)
92 #:use-module (gnu packages kde-frameworks)
93 #:use-module (gnu packages kerberos)
94 #:use-module (gnu packages less)
95 #:use-module (gnu packages libcanberra)
96 #:use-module (gnu packages libevent)
97 #:use-module (gnu packages libffi)
98 #:use-module (gnu packages libidn)
99 #:use-module (gnu packages libreoffice)
100 #:use-module (gnu packages linux)
101 #:use-module (gnu packages logging)
102 #:use-module (gnu packages lua)
103 #:use-module (gnu packages man)
104 #:use-module (gnu packages markup)
105 #:use-module (gnu packages matrix)
106 #:use-module (gnu packages mono)
107 #:use-module (gnu packages mpd)
108 #:use-module (gnu packages ncurses)
109 #:use-module (gnu packages networking)
110 #:use-module (gnu packages nss)
111 #:use-module (gnu packages pcre)
112 #:use-module (gnu packages perl)
113 #:use-module (gnu packages photo)
114 #:use-module (gnu packages php)
115 #:use-module (gnu packages pkg-config)
116 #:use-module (gnu packages protobuf)
117 #:use-module (gnu packages python)
118 #:use-module (gnu packages python-check)
119 #:use-module (gnu packages python-crypto)
120 #:use-module (gnu packages python-web)
121 #:use-module (gnu packages python-xyz)
122 #:use-module (gnu packages qt)
123 #:use-module (gnu packages readline)
124 #:use-module (gnu packages ruby)
125 #:use-module (gnu packages sphinx)
126 #:use-module (gnu packages sqlite)
127 #:use-module (gnu packages tcl)
128 #:use-module (gnu packages telephony)
129 #:use-module (gnu packages texinfo)
130 #:use-module (gnu packages textutils)
131 #:use-module (gnu packages tls)
132 #:use-module (gnu packages video)
133 #:use-module (gnu packages web)
134 #:use-module (gnu packages xdisorg)
135 #:use-module (gnu packages xiph)
136 #:use-module (gnu packages xml)
137 #:use-module (gnu packages xorg)
138 #:use-module (guix build-system cmake)
139 #:use-module (guix build-system go)
140 #:use-module (guix build-system glib-or-gtk)
141 #:use-module (guix build-system gnu)
142 #:use-module (guix build-system meson)
143 #:use-module (guix build-system perl)
144 #:use-module (guix build-system python)
145 #:use-module (guix build-system qt)
146 #:use-module (guix build-system trivial)
147 #:use-module (guix download)
148 #:use-module (guix gexp)
149 #:use-module (guix git-download)
150 #:use-module (guix hg-download)
151 #:use-module ((guix licenses) #:prefix license:)
152 #:use-module (guix packages)
153 #:use-module (guix utils))
155 (define-public omemo-wget
164 (url "https://github.com/roobre/omemo-wget")
165 (commit (string-append "v" version))))
166 (file-name (git-file-name name version))
168 (base32 "0s3vfaicw5xbjl9yiyr4ckrzhzqbvfh1w2ih1igavlfpgw4v7kva"))))
169 (build-system go-build-system)
171 `(#:import-path "github.com/roobre/omemo-wget"
173 (modify-phases %standard-phases
174 (add-after 'unpack 'patch
175 (lambda* (#:key inputs #:allow-other-keys)
176 (let* ((xdg-utils (assoc-ref inputs "xdg-utils"))
177 (xdg-open (string-append xdg-utils "/bin/xdg-open")))
178 (substitute* (find-files "." "\\.go$")
179 ;; Correct the import path of 'aesgcm' package.
180 (("roob\\.re/omemo-wget/aesgcm")
181 "github.com/roobre/omemo-wget/aesgcm")
182 ;; Use absolute path of 'xdg-open' program.
183 (("xdg-open") xdg-open))))))))
185 (list go-github-com-pkg-errors xdg-utils))
186 (home-page "https://roob.re/omemo-wget")
187 (synopsis "Program to download and decrypt @code{aesgcm://} URLs")
188 (description "OMEMO-wget is a tool to handle cryptographic URLs, generated
189 by @acronym{OMEMO, OMEMO Multi-End Message and Object Encryption}, during
190 XMPP-based sessions.")
191 (license license:lgpl3+)))
201 (string-append "mirror://sourceforge/psi/Psi/"
202 version "/psi-" version ".tar.xz"))
203 (modules '((guix build utils)))
206 (delete-file-recursively "3rdparty")))
208 (base32 "1dxmm1d1zr0pfs51lba732ipm6hm2357jlfb934lvarzsh7karri"))))
209 (build-system qt-build-system)
211 `(#:tests? #f ; No target
217 (modify-phases %standard-phases
218 (add-after 'unpack 'patch-cmake
220 (substitute* "cmake/modules/FindHunspell.cmake"
225 `(("pkg-config" ,pkg-config)
226 ("python" ,python-wrapper)
230 ("enchant" ,enchant-1.6)
231 ("hunspell" ,hunspell)
235 ("qtmultimedia-5" ,qtmultimedia-5)
237 ("qtwebkit" ,qtwebkit)
238 ("qtx11extras" ,qtx11extras)
243 (synopsis "Qt-based XMPP Client")
244 (description "Psi is a capable XMPP client aimed at experienced users.
245 Its design goals are simplicity and stability.")
246 (home-page "https://psi-im.org")
247 (license license:gpl2+)))
249 (define-public libgnt
257 (string-append "mirror://sourceforge/pidgin/libgnt/"
258 version "/libgnt-" version ".tar.xz"))
260 (base32 "08v14fjcx2wx6c573wllq015l6zc8qkpz8rrl6qhp7crf9zlbxap"))))
261 (build-system meson-build-system)
262 (outputs '("out" "doc"))
264 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
266 (modify-phases %standard-phases
267 (add-after 'unpack 'patch-ncurses-path
268 (lambda* (#:key inputs #:allow-other-keys)
269 (substitute* "meson.build"
272 (assoc-ref inputs "ncurses")
274 (add-before 'configure 'patch-docbook-xml
275 (lambda* (#:key inputs #:allow-other-keys)
276 (with-directory-excursion "doc"
277 (substitute* "libgnt-docs.xml"
278 (("http://www.oasis-open.org/docbook/xml/4.1.2/")
279 (string-append (assoc-ref inputs "docbook-xml")
280 "/xml/dtd/docbook/"))))))
281 (add-after 'install 'move-doc
282 (lambda* (#:key outputs #:allow-other-keys)
283 (let* ((out (assoc-ref outputs "out"))
284 (doc (assoc-ref outputs "doc")))
285 (mkdir-p (string-append doc "/share"))
287 (string-append out "/share/gtk-doc")
288 (string-append doc "/share/gtk-doc"))))))))
290 `(("docbook-xml" ,docbook-xml-4.1.2)
291 ("glib:bin" ,glib "bin")
292 ("gobject-introspection" ,gobject-introspection)
294 ("pkg-config" ,pkg-config)))
300 ("python" ,python-2)))
301 (synopsis "GLib Ncurses Toolkit")
302 (description "GNT is an ncurses toolkit for creating text-mode graphical
303 user interfaces in a fast and easy way. It is based on GLib and ncurses.")
304 (home-page "https://keep.imfreedom.org/libgnt/libgnt")
305 (license license:gpl2+)))
307 (define-public libgadu
316 (url "https://github.com/wojtekka/libgadu.git")
319 (git-file-name name version))
321 (base32 "1s16cripy5w9k12534qb012iwc5m9qcjyrywgsziyn3kl3i0aa8h"))))
322 (build-system gnu-build-system)
324 ;; 'test/manual/userconfig.h' contains definitions in lieu of
325 ;; declarations, hence '-fcommon'.
327 (list "--disable-static" "CFLAGS=-O2 -g -fcommon")
329 (modify-phases %standard-phases
330 (add-after 'unpack 'patch-shebangs
331 (lambda* (#:key inputs #:allow-other-keys)
332 (substitute* "protobufgen.sh"
334 (search-input-file inputs "/bin/sh"))))))))
346 ("libprotobuf-c" ,protobuf-c)
352 (synopsis "Library for handling the protocol of Gadu-Gadu")
353 (description "LibGadu is library for handling Gadu-Gadu instant messenger
354 protocol. The library is written in C and aims to be operating system and
355 environment independent.")
356 (home-page "https://libgadu.net/index.en.html")
357 (license license:lgpl2.1+)))
359 (define-public silc-toolkit
361 (name "silc-toolkit")
367 (string-append "mirror://sourceforge/silc/silc/toolkit/sources/silc-toolkit-"
370 (base32 "0mnvf9n7qriadg0p7a8qmvcayhnns2g9fhmcymavlm0v8xrky33y"))))
371 (build-system gnu-build-system)
377 "--enable-stack-trace")
379 (modify-phases %standard-phases
380 (add-after 'unpack 'trigger-bootstrap
382 (delete-file "configure")
383 (delete-file "Makefile.in")
386 (list autoconf automake libtool perl pkg-config))
387 (synopsis "SILC ToolKit")
388 (description "SILC (Secure Internet Live Conferencing) is a modern and secure
389 conferencing protocol. It provides all the common conferencing services like
390 private messages, instant messages, channels and groups, and video and audio
392 (home-page "https://silc.github.io/info")
407 (url "https://github.com/qxmpp-project/qxmpp")
408 (commit (string-append "v" version))))
409 (file-name (git-file-name name version))
411 (base32 "1knpq1jkwk0lxdwczbmzf7qrjvlxba9yr40nbq9s5nqkcx6q1c3i"))))
412 (build-system cmake-build-system)
414 `(#:configure-flags (list "-DBUILD_EXAMPLES=false"
415 "-DWITH_GSTREAMER=true")
417 (modify-phases %standard-phases
419 (lambda* (#:key tests? #:allow-other-keys)
422 (string-join ;; These tests use the network.
423 (list "tst_qxmppiceconnection"
424 "tst_qxmppcallmanager"
425 "tst_qxmpptransfermanager")
430 (list gstreamer qtbase-5))
431 (home-page "https://github.com/qxmpp-project/qxmpp")
432 (synopsis "XMPP client and server library")
434 "QXmpp is a XMPP client and server library written in C++ and uses the Qt
435 framework. It builds XMPP clients complying with the XMPP Compliance Suites
436 2021 for IM and Advanced Mobile.")
437 (license license:lgpl2.1+)))
439 (define-public meanwhile
448 (url "https://github.com/obriencj/meanwhile.git")
450 (string-append "v" version))))
452 (git-file-name name version))
454 (base32 "1k1gvmx1ikm0y1mdmm495rzkb00pl170jfaf2dy0n5aiiknkk7q3"))))
455 (build-system glib-or-gtk-build-system)
457 (list autoconf automake doxygen libtool pkg-config))
460 (synopsis "Library for Lotus Instant Messaging")
461 (description "Meanwhile is a library for connecting to a LIM (Lotus Instant
462 Messaging, formerly Lotus Sametime, formerly VPBuddy) community. It uses a
463 protocol based in part off of the IMPP draft(*1), and in part off of traces of
464 TCP sessions from existing clients.")
465 (home-page "https://github.com/obriencj/meanwhile")
466 (license license:lgpl3)))
468 (define-public poezio
477 (url "https://lab.louiz.org/poezio/poezio.git")
479 (string-append "v" version))))
481 (git-file-name name version))
483 (base32 "0p92k8ssjsgavyfv1fd5cgzyw87dmdd84vaz7zvfsf5crvpr1mkf"))))
484 (build-system python-build-system)
487 #~(modify-phases %standard-phases
488 (add-after 'unpack 'patch
490 (substitute* "setup.py"
494 (list pkg-config python-setuptools python-sphinx))
499 python-pyasn1-modules
504 (synopsis "Console Jabber/XMPP Client")
505 (description "Poezio is a free console XMPP client (the protocol on which
506 the Jabber IM network is built).
507 Its goal is to let you connect very easily (no account creation needed) to the
508 network and join various chatrooms, immediately. It tries to look like the
509 most famous IRC clients (weechat, irssi, etc). Many commands are identical and
510 you won't be lost if you already know these clients. Configuration can be
511 made in a configuration file or directly from the client.
512 You'll find the light, fast, geeky and anonymous spirit of IRC while using a
513 powerful, standard and open protocol.")
514 (home-page "https://poez.io/en/")
515 (license license:zlib)))
517 (define-public libotr
524 (uri (string-append "https://otr.cypherpunks.ca/libotr-"
527 (base32 "1x8rliydhbibmzwdbyr7pd7n87m2jmxnqkpvaalnf4154hj1hfwb"))
529 (search-patches "libotr-test-auth-fix.patch"))))
530 (build-system gnu-build-system)
532 (list perl)) ; for the test suite
536 (list libgcrypt)) ; libotr headers include gcrypt.h
537 (synopsis "Off-the-Record (OTR) Messaging Library and Toolkit")
538 (description "OTR allows you to have private conversations over instant
539 messaging by providing: (1) Encryption: No one else can read your instant
540 messages. (2) Authentication: You are assured the correspondent is who you
541 think it is. (3) Deniability: The messages you send do not have digital
542 signatures that are checkable by a third party. Anyone can forge messages
543 after a conversation to make them look like they came from you. However,
544 during a conversation, your correspondent is assured the messages he sees are
545 authentic and unmodified. (4) Perfect forward secrecy: If you lose control of
546 your private keys, no previous conversation is compromised.")
547 (home-page "https://otr.cypherpunks.ca/")
555 (define-public libsignal-protocol-c
557 (name "libsignal-protocol-c")
562 (url "https://github.com/WhisperSystems/libsignal-protocol-c")
563 (commit (string-append "v" version))))
564 (file-name (git-file-name name version))
567 "0z5p03vk15i6h870azfjgyfgxhv31q2vq6rfhnybrnkxq2wqzwhk"))))
569 `(;; Required for proper linking and for tests to run.
570 #:configure-flags '("-DBUILD_SHARED_LIBS=on" "-DBUILD_TESTING=1")))
571 (build-system cmake-build-system)
572 (inputs (list ;; Required for tests:
574 (native-inputs (list pkg-config))
575 (home-page "https://github.com/WhisperSystems/libsignal-protocol-c")
576 (synopsis "Implementation of a ratcheting forward secrecy protocol")
577 (description "libsignal-protocol-c is an implementation of a ratcheting
578 forward secrecy protocol that works in synchronous and asynchronous
579 messaging environments. It can be used with messaging software to provide
580 end-to-end encryption.")
581 (license license:gpl3+)))
591 (url "https://github.com/gkdr/axc")
592 (commit (string-append "v" version))))
593 (modules '((guix build utils)))
596 ;; Empty directories meant to hold submodules that we provide as
597 ;; proper inputs below.
598 (delete-file-recursively "lib")))
600 (git-file-name name version))
602 (base32 "0b02b9flri374f8aw6xfz7mm9s57rb7393r8mdphv7kcsf76i7i5"))))
603 (build-system cmake-build-system)
605 `(#:phases (modify-phases %standard-phases
607 (lambda* (#:key outputs #:allow-other-keys)
608 (let ((out (assoc-ref outputs "out")))
610 (setenv "PREFIX" out)))))
611 #:parallel-tests? #f))
612 (native-inputs (list cmocka pkg-config))
613 (inputs (list glib libgcrypt libsignal-protocol-c sqlite))
614 (synopsis "Client library for libsignal-protocol-c")
615 (description "This is a client library for @code{libsignal-protocol-c}.
616 It implements the necessary interfaces using @code{libgcrypt} and
618 (home-page "https://github.com/gkdr/axc")
619 (license license:gpl3))) ;GPLv3-only, per license headers
621 (define-public libomemo
629 (url "https://github.com/gkdr/libomemo")
630 (commit (string-append "v" version))))
632 (git-file-name name version))
634 (base32 "1q3vyj8zk3vm0a4v6w8qya5dhk2yw04bga8799a0zl6907nf122k"))))
635 (build-system cmake-build-system)
637 `(#:phases (modify-phases %standard-phases
639 (lambda* (#:key outputs #:allow-other-keys)
640 (let ((out (assoc-ref outputs "out")))
642 (setenv "PREFIX" out)))))
643 #:parallel-tests? #f))
644 (native-inputs (list cmocka pkg-config))
645 (inputs (list glib libgcrypt minixml sqlite))
646 (synopsis "OMEMO C library")
647 (description "This library implements @acronym{OMEMO, OMEMO Multi-End
648 Message and Object Encryption} of XMPP (XEP-0384) in C.")
649 (home-page "https://github.com/gkdr/libomemo")
650 (license license:expat)))
652 (define-public bitlbee
658 (uri (string-append "https://get.bitlbee.org/src/bitlbee-"
661 (base32 "0zhhcbcr59sx9h4maf8zamzv2waya7sbsl7w74gbyilvy93dw5cz"))))
662 (build-system gnu-build-system)
663 (native-inputs (list pkg-config
664 ;; Note: Change to 'check' for versions > 3.6.
666 (inputs (list glib libotr gnutls python perl))
669 (modify-phases %standard-phases
670 (add-before 'configure 'set-python
671 (lambda _ (setenv "PYTHON" (which "python3")) #t))
672 (add-after 'install 'install-etc
673 (lambda* (#:key (make-flags '()) #:allow-other-keys)
674 (apply invoke "make" "install-etc" make-flags)))
675 (add-after 'install-etc 'install-lib
676 (lambda* (#:key (make-flags '()) #:allow-other-keys)
677 (apply invoke "make" "install-dev" make-flags)))
679 ;; bitlbee's configure script does not tolerate many of the
680 ;; variable settings that Guix would pass to it.
681 (lambda* (#:key outputs #:allow-other-keys)
682 (invoke "./configure"
683 (string-append "--prefix="
684 (assoc-ref outputs "out"))
686 (synopsis "IRC to instant messaging gateway")
687 (description "BitlBee brings IM (instant messaging) to IRC clients, for
688 people who have an IRC client running all the time and don't want to run an
689 additional IM client. BitlBee currently supports XMPP/Jabber (including
690 Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ, and the Twitter
691 microblogging network (plus all other Twitter API compatible services like
692 identi.ca and status.net).")
693 (home-page "https://www.bitlbee.org/")
694 (license (list license:gpl2+ license:bsd-2))))
696 (define-public bitlbee-purple
697 ;; This variant uses libpurple, which provides support for more protocols at
698 ;; the expense of a much bigger closure.
699 (package/inherit bitlbee
700 (name "bitlbee-purple")
701 (synopsis "IRC to instant messaging gateway (using Pidgin's libpurple)")
702 (inputs (modify-inputs (package-inputs bitlbee)
705 (list (search-path-specification
706 (variable "PURPLE_PLUGIN_PATH")
707 ;; XXX: Should be (version-major (package-version pidgin)) but
708 ;; can't due to circular references.
709 (files (list (string-append "lib/purple-2")
712 (substitute-keyword-arguments (package-arguments bitlbee)
713 ((#:phases phases '%standard-phases)
714 `(modify-phases ,phases
715 (replace 'configure ;add "--purple=1"
716 (lambda* (#:key outputs #:allow-other-keys)
717 (invoke "./configure"
718 (string-append "--prefix="
719 (assoc-ref outputs "out"))
720 "--otr=1" "--purple=1")))))
722 ;; XXX: Tests fail to link, and ./configure says that it's "supported
723 ;; on a best-effort basis" anyway.
726 (define-public bitlbee-discord
727 ;; Version 0.4.3 of bitlbee-discord was prepared to work for
728 ;; glib@2.68. However, version 2.69 of glib introduced a breaking change
729 ;; causing bitlbee-discord to throw:
731 ;; discord - Login error: Failed to switch to websocket mode
733 ;; This makes the plugin unable to connect and therefore unusable:
734 ;; https://github.com/sm00th/bitlbee-discord/issues/226
735 ;; The specified commit fixes incompatibility with glib@2.69 and newer.
736 (let ((commit "607f9887ca85f246e970778e3d40aa5c346365a7")
739 (name "bitlbee-discord")
740 (version (git-version "0.4.3" revision commit))
745 (url "https://github.com/sm00th/bitlbee-discord")
747 (file-name (git-file-name name version))
749 (base32 "0jkwhx2walx2ay0vc9x13q0j1qq4r5x30ss03a3j7ks28xvsnxc7"))))
750 (build-system gnu-build-system)
753 (let ((out (assoc-ref %outputs "out")))
754 (list (string-append "--with-bdatadir=" out "/share/bitlbee/")
755 (string-append "--with-plugindir=" out "/lib/bitlbee/")))
757 (modify-phases %standard-phases
758 (add-after 'unpack 'patch-autogen
760 (let ((sh (which "sh")))
761 (substitute* "autogen.sh" (("/bin/sh") sh))
762 (setenv "CONFIG_SHELL" sh)))))))
764 (native-inputs (list pkg-config
769 bitlbee ; needs bitlbee headers
771 (synopsis "Discord plugin for Bitlbee")
772 (description "Bitlbee-discord is a plugin for Bitlbee which provides
773 access to servers running the Discord protocol.")
774 (home-page "https://github.com/sm00th/bitlbee-discord/")
775 (license license:gpl2+))))
777 (define-public purple-mattermost
778 ;; The latest release (1.2) only supports Mattermost's /api/v3. Choose a
779 ;; commit that supports /api/v4.
780 (let ((commit "158ce2052af9aaf3d1f6f045f0cfba276e0e91cf")
783 (name "purple-mattermost")
784 (version (git-version "1.2" revision commit))
785 (home-page "https://github.com/EionRobb/purple-mattermost")
788 (uri (git-reference (url home-page)
790 (file-name (git-file-name name version))
793 "1481zm20pnfq52ncg7hxayjq8cw3a6yh9m4jm1m5s8chsq04015l"))))
794 (build-system gnu-build-system)
796 `(#:phases (modify-phases %standard-phases
798 (lambda* (#:key inputs outputs #:allow-other-keys)
799 ;; Adjust the makefile to install files in the right
801 (let ((out (assoc-ref outputs "out")))
802 (substitute* "Makefile"
803 (("MATTERMOST_DEST = .*")
804 (string-append "MATTERMOST_DEST = " out
805 "/lib/purple-2\n")) ;XXX: hardcoded
806 (("MATTERMOST_ICONS_DEST = .*")
807 (string-append "MATTERMOST_ICONS_DEST = "
809 "/share/pixmaps/pidgin/protocols\n")))
811 #:make-flags (list "CC=gcc"
812 ,(string-append "PLUGIN_VERSION=" version))
814 (inputs (list glib json-glib discount pidgin))
815 (native-inputs (list pkg-config))
816 (synopsis "Purple plug-in to access Mattermost instant messaging")
818 "Purple-Mattermost is a plug-in for Purple, the instant messaging library
819 used by Pidgin and Bitlbee, among others, to access
820 @uref{https://mattermost.com/, Mattermost} servers.")
821 (license license:gpl3+))))
823 (define-public hexchat
830 (uri (string-append "https://dl.hexchat.net/hexchat/hexchat-"
833 (base32 "1iy4ln6yfgy3xysrfpjxw8fn38i3qx8jsn2mk2prshfzf7d9gr57"))))
834 (build-system meson-build-system)
835 (native-inputs `(("gettext" ,gettext-minimal)
836 ("glib:bin" ,glib "bin") ;need glib-genmarshal
838 ("pkg-config" ,pkg-config)))
839 (inputs `(("dbus-glib" ,dbus-glib)
843 ("libcanberra" ,libcanberra)
846 ;; Bindings for add-on scripts.
848 ("perl-xml-parser" ,perl-xml-parser)
850 ("python-cffi" ,python-cffi)
852 ;; For the ensuing WRAP-PROGRAM.
853 ("bash-minimal" ,bash-minimal)))
856 (modify-phases %standard-phases
857 (add-after 'unpack 'skip-desktop-database-updates
859 ;; The build scripts update icon and desktop file databases when
860 ;; DESTDIR is not set. We can't update these databases from
861 ;; within the build chroot, but we also don't set DESTDIR. So, we
862 ;; just skip this code.
863 (substitute* "meson_post_install.py"
864 (("if 'DESTDIR' not in os.environ:")
866 (add-after 'install 'wrap-program
867 ;; Let it ‘initialize the Python-CFFI embedding logic’ at run time.
868 (lambda* (#:key outputs #:allow-other-keys)
869 (let* ((out (assoc-ref outputs "out"))
870 (bin (string-append out "/bin")))
871 (wrap-program (string-append bin "/hexchat")
872 `("GUIX_PYTHONPATH" ":" prefix
873 (,(getenv "GUIX_PYTHONPATH"))))))))))
874 (synopsis "Graphical IRC client")
876 "HexChat lets you connect to multiple IRC networks at once. The main
877 window shows the list of currently connected networks and their channels, the
878 current conversation and the list of users. It uses colors to differentiate
879 between users and to highlight messages. It checks spelling using available
880 dictionaries. HexChat can be extended with multiple addons.")
881 (home-page "https://hexchat.net/")
882 (license license:gpl2+)))
884 (define-public ngircd
890 (uri (string-append "https://arthur.barton.de/pub/ngircd/ngircd-"
894 "0m32v0c7mq96rshws4h6d0pi4bm0hynfzx3x01mgrxh9c396zham"))
895 (patches (search-patches "ngircd-handle-zombies.patch"))))
896 (build-system gnu-build-system)
897 ;; Needed for the test suite.
898 (native-inputs (list procps expect inetutils openssl))
900 (inputs `(("zlib" ,zlib)
901 ("libwrap" ,tcp-wrappers)
903 ,@(if (string-suffix? "-linux"
904 (or (%current-target-system)
906 `(("linux-pam" ,linux-pam))
910 '("--with-gnutls" "--with-iconv" "--enable-ipv6" "--with-tcp-wrappers"
911 ,@(if (string-suffix? "-linux"
912 (or (%current-target-system)
917 (modify-phases %standard-phases
918 ;; Necessary for the test suite.
919 (add-after 'configure 'post-configure
921 (substitute* "src/ngircd/Makefile"
922 (("/bin/sh") (which "sh")))
923 ;; The default getpid.sh does a sloppy grep over 'ps -ax' output,
924 ;; which fails arbitrarily.
925 (with-output-to-file "src/testsuite/getpid.sh"
929 "#!" (which "sh") "\n"
930 "ps -C \"$1\" -o pid=\n"))))
931 ;; Our variant of getpid.sh does not match interpreter names
932 ;; when the script's shebang is invoked directly as "./foo".
933 ;; Patch cases where the test suite relies on this.
934 (substitute* "src/testsuite/start-server.sh"
935 ;; It runs 'getpid.sh sh' to test if it works at all. Run it on
937 (("getpid.sh sh") "getpid.sh make")))))))
938 (home-page "https://ngircd.barton.de/")
939 (synopsis "Lightweight Internet Relay Chat server for small networks")
941 "ngIRCd is a lightweight @dfn{Internet Relay Chat} (IRC) server for small
942 or private networks. It is easy to configure, can cope with dynamic IP
943 addresses, and supports IPv6, SSL-protected connections, as well as PAM for
945 (license license:gpl2+)))
947 (define-public pidgin
955 (string-append "mirror://sourceforge/pidgin/Pidgin/"
956 version "/pidgin-" version ".tar.gz"))
958 (base32 "12llip3r8126gph82r638xjv2v2rg34qgggn1nbwfmc3s7halimr"))
960 (search-patches "pidgin-add-search-path.patch"))
961 (modules '((guix build utils)))
964 ;; Remove stale generated file after applying patches.
965 (delete-file "configure")
967 (build-system glib-or-gtk-build-system)
969 `(("autoconf" ,autoconf) ;; For bootstrap
970 ("automake" ,automake) ;; For bootstrap
974 ("intltool" ,intltool)
975 ("libtool" ,libtool) ;; For bootstrap
976 ("pkg-config" ,pkg-config)))
979 ("cyrus-sasl" ,cyrus-sasl)
981 ("dbus-glib" ,dbus-glib)
982 ;; ("evolution-data-server" ,evolution-data-server)
983 ("farstream" ,farstream)
985 ("gstreamer" ,gstreamer)
986 ;; ("gtkspell2" ,gtkspell2)
988 ("libgcrypt" ,libgcrypt)
997 ("libxscrnsaver" ,libxscrnsaver)
999 ;; ("libzephyr" ,libzephyr)
1000 ("meanwhile" ,meanwhile)
1002 ("ncurses" ,ncurses)
1003 ("network-manager" ,network-manager)
1008 ("python" ,python-2)
1009 ("python2-dbus" ,python2-dbus)
1010 ("silc" ,silc-toolkit)
1012 ("startup-notification" ,startup-notification)
1020 (string-append "CFLAGS=-I"
1021 (assoc-ref %build-inputs "gst-plugins-base")
1022 "/include/gstreamer-1.0")
1023 "--disable-gtkspell"
1024 "--disable-gevolution"
1027 "--enable-cyrus-sasl"
1028 (string-append "--with-ncurses-headers="
1029 (assoc-ref %build-inputs "ncurses")
1031 (string-append "--with-tclconfig="
1032 (assoc-ref %build-inputs "tcl")
1034 (string-append "--with-tkconfig="
1035 (assoc-ref %build-inputs "tk")
1037 (native-search-paths
1039 (search-path-specification
1040 (variable "PURPLE_PLUGIN_PATH")
1043 (string-append "lib/purple-"
1044 (version-major version))
1046 (home-page "https://www.pidgin.im/")
1047 (synopsis "Graphical multi-protocol instant messaging client")
1048 (description "Pidgin is a modular instant messaging client that supports
1049 many popular chat protocols.")
1052 license:gpl2+ ; Most of the code
1053 license:lgpl2.1 ; GG protocol plugin (libpurple/protocols/gg/lib)
1054 license:lgpl2.0+ ; OSCAR protocol plugin (libpurple/protocols/oscar)
1055 ;; The following licenses cover the zephyr protocol plugin:
1056 (license:non-copyleft
1057 "file://libpurple/protocols/zephyr/mit-copyright.h"
1058 "See libpurple/protocols/zephyr/mit-copyright.h in the distribution.")
1059 (license:non-copyleft
1060 "file://libpurple/protocols/zephyr/mit-sipb-copyright.h"
1061 "See libpurple/protocols/zephyr/mit-sipb-copyright.h in the distribution.")))))
1063 (define-public pidgin-otr
1071 (string-append "https://otr.cypherpunks.ca/"
1072 name "-" version ".tar.gz"))
1074 (base32 "1i5s9rrgbyss9rszq6c6y53hwqyw1k86s40cpsfx5ccl9bprxdgl"))))
1075 (build-system gnu-build-system)
1077 (list gettext-minimal intltool pkg-config))
1086 (home-page "https://otr.cypherpunks.ca/")
1087 (synopsis "Off-the-Record Messaging plugin for Pidgin")
1088 (description "Pidgin-OTR is a plugin that adds support for OTR to the Pidgin
1089 instant messaging client. OTR (Off-the-Record) Messaging allows you to have
1090 private conversations over instant messaging by providing: (1) Encryption: No
1091 one else can read your instant messages. (2) Authentication: You are assured
1092 the correspondent is who you think it is. (3) Deniability: The messages you
1093 send do not have digital signatures that are checkable by a third party. Anyone
1094 can forge messages after a conversation to make them look like they came from
1095 you. However, during a conversation, your correspondent is assured the messages
1096 he sees are authentic and unmodified. (4) Perfect forward secrecy: If you lose
1097 control of your private keys, no previous conversation is compromised.")
1098 (license license:gpl2+)))
1106 (uri (string-append "https://znc.in/releases/archive/znc-"
1110 "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz"))))
1111 (build-system cmake-build-system)
1114 (list "-DWANT_CYRUS=ON"
1119 (modify-phases %standard-phases
1120 (add-after 'unpack 'unpack-googletest
1121 ;; Copy the googletest sources to where the CMake build expects them.
1122 (lambda* (#:key inputs #:allow-other-keys)
1123 (let ((source (assoc-ref inputs "googletest-source"))
1124 (target "third_party/googletest"))
1126 (copy-recursively source target)
1130 ("gettext" ,gettext-minimal)
1131 ("googletest-source" ,(package-source googletest))
1132 ("pkg-config" ,pkg-config)))
1140 (home-page "https://wiki.znc.in/ZNC")
1141 (synopsis "IRC network bouncer")
1142 (description "ZNC is an @dfn{IRC network bouncer} or @dfn{BNC}. It can
1143 detach the client from the actual IRC server, and also from selected channels.
1144 Multiple clients from different locations can connect to a single ZNC account
1145 simultaneously and therefore appear under the same nickname on IRC.")
1146 (license license:asl2.0)))
1148 (define-public python-nbxmpp
1150 (name "python-nbxmpp")
1156 (pypi-uri "nbxmpp" version))
1158 (base32 "0c32090gr1fiy7hkn73dcj4ad9gfdpks8hivl1dl8bql01jsfdnj"))))
1159 (build-system python-build-system)
1161 (list `(,glib "bin")))
1170 (synopsis "Non-blocking XMPP Module")
1171 (description "Python-nbxmpp is a Python library that provides a way for
1172 Python applications to use the XMPP network. This library was initially a fork
1174 (home-page "https://dev.gajim.org/gajim/python-nbxmpp")
1175 (license license:gpl3+)))
1177 (define-public gajim
1185 (string-append "https://gajim.org/downloads/"
1186 (version-major+minor version)
1187 "/gajim-" version ".tar.gz"))
1189 (base32 "0ks25hh7ksx0nfydixpixcli556w7qcylxp2z2xsx8mgzqv7c9la"))
1190 (patches (search-patches "gajim-honour-GAJIM_PLUGIN_PATH.patch"))))
1191 (build-system python-build-system)
1193 `(#:imported-modules
1194 (,@%python-build-system-modules
1195 (guix build glib-or-gtk-build-system))
1197 ((guix build python-build-system)
1198 ((guix build glib-or-gtk-build-system)
1199 #:prefix glib-or-gtk:)
1202 (modify-phases %standard-phases
1203 (add-after 'unpack 'disable-failing-tests
1205 ;; XXX Gajim builds fine on some (my) machines but fails elsewhere:
1206 ;; ModuleNotFoundError: No module named 'gajim.gui.emoji_data'
1207 ;; https://dev.gajim.org/gajim/gajim/-/issues/11041
1208 (delete-file "test/no_gui/test_styling.py")))
1211 ;; Tests require a running X server.
1212 (system "Xvfb :1 +extension GLX &")
1213 (setenv "DISPLAY" ":1")
1214 ;; For missing '/etc/machine-id'.
1215 (setenv "DBUS_FATAL_WARNINGS" "0")
1216 (invoke "dbus-launch" "python" "./setup.py" "test")))
1217 ;; Loading gajim_remote require running session bus,
1218 ;; which in-turn requires running elogind for XDG_RUNTIME_DIR;
1219 ;; neither of which are possible inside build environment.
1220 (delete 'sanity-check)
1221 (add-after 'install 'glib-or-gtk-compile-schemas
1222 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
1223 (add-after 'install 'glib-or-gtk-wrap
1224 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
1225 (add-after 'install 'wrap-env
1226 (lambda* (#:key outputs #:allow-other-keys)
1227 (let ((out (assoc-ref outputs "out")))
1230 (let ((file (string-append out "/bin/" name))
1231 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
1232 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
1234 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
1235 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))))
1236 '("gajim" "gajim-remote"))))))))
1237 (native-search-paths
1239 (search-path-specification
1240 (variable "GAJIM_PLUGIN_PATH")
1241 (separator #f) ;single entry
1244 "share/gajim/plugins")))
1245 ;; Gajim needs to use the propagated inputs of its plugins.
1246 (search-path-specification
1247 (variable "GUIX_PYTHONPATH")
1252 ;; FIXME: Cannot use this expression as it would
1253 ;; introduce a circular dependency at the top level.
1254 ;; (version-major+minor (package-version python))
1256 "/site-packages"))))))
1258 `(("gettext" ,gettext-minimal)
1259 ("glib:bin" ,glib "bin")
1260 ("gobject-introspection" ,gobject-introspection)
1261 ("gtk+:bin" ,gtk+ "bin")
1262 ("python-distutils-extra" ,python-distutils-extra)
1263 ("python-setuptools" ,python-setuptools)
1264 ("xorg-server" ,xorg-server-for-tests)))
1268 ("farstream" ,farstream)
1269 ("geoclue" ,geoclue)
1271 ("glib-networking" ,glib-networking)
1272 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
1275 ("gstreamer" ,gstreamer)
1276 ("gst-plugins-base" ,gst-plugins-base)
1278 ("gtksourceview" ,gtksourceview)
1279 ("gupnp-igd" ,gupnp-igd)
1280 ("libappindicator" ,libappindicator)
1281 ("libnice" ,libnice)
1282 ("libsecret" ,libsecret)
1283 ("libsoup" ,libsoup)
1284 ("libxss" ,libxscrnsaver)
1285 ("network-manager" ,network-manager)
1286 ("python-css-parser" ,python-css-parser)
1287 ("python-dbus" ,python-dbus)
1288 ("python-gssapi" ,python-gssapi)
1289 ("python-keyring" ,python-keyring)
1290 ("python-nbxmpp" ,python-nbxmpp)
1291 ("python-packaging" ,python-packaging)
1292 ("python-pillow" ,python-pillow)
1293 ("python-precis-i18n" ,python-precis-i18n)
1294 ("python-pycairo" ,python-pycairo)
1295 ("python-pygobject" ,python-pygobject)
1296 ("python-pyopenssl" ,python-pyopenssl)))
1299 (synopsis "Fully-featured XMPP client")
1300 (description "Gajim aims to be an easy to use and fully-featured XMPP chat
1301 client. It is extensible via plugins, supports end-to-end encryption (OMEMO
1302 and OpenPGP) and available in 29 languages.")
1303 (home-page "https://gajim.org/")
1304 (license license:gpl3)))
1306 (define-public gajim-omemo
1308 (name "gajim-omemo")
1312 (method url-fetch/zipbomb)
1315 "https://ftp.gajim.org/plugins/master/omemo/omemo_"
1318 (base32 "1hf148ywr8knk5y3y5xvvwgw74ld1pcfjkp78g514ikcnzfycfcn"))))
1319 (build-system trivial-build-system)
1321 `(#:modules ((guix build utils))
1324 (use-modules (guix build utils))
1325 (let* ((out (assoc-ref %outputs "out"))
1326 (share (in-vicinity out "share/gajim/plugins/omemo"))
1327 (source (assoc-ref %build-inputs "source")))
1329 (copy-recursively source share)
1332 (list python-axolotl python-axolotl-curve25519 python-cryptography
1334 (synopsis "Gajim OMEMO plugin")
1335 (description "Gajim-OMEMO is a plugin that adds support for the OMEMO
1336 Encryption to Gajim. OMEMO is an XMPP Extension Protocol (XEP) for secure
1337 multi-client end-to-end encryption.")
1339 "https://dev.gajim.org/gajim/gajim-plugins/-/wikis/OmemoGajimPlugin")
1340 (license license:gpl3+)))
1342 (define-public gajim-openpgp
1344 (name "gajim-openpgp")
1348 (method url-fetch/zipbomb)
1351 "https://ftp.gajim.org/plugins/master/openpgp/openpgp_"
1354 (base32 "1xwmf6ai1z7z9x6p1ysglxji73r7d27c0gzc8ykab29cjhjyv0dq"))))
1355 (build-system trivial-build-system)
1357 `(#:modules ((guix build utils))
1360 (use-modules (guix build utils))
1361 (let* ((out (assoc-ref %outputs "out"))
1362 (share (in-vicinity out "share/gajim/plugins/openpgp"))
1363 (source (assoc-ref %build-inputs "source")))
1365 (copy-recursively source share)
1368 (list python-cryptography python-gnupg python-gpg))
1369 (synopsis "Gajim OpenPGP plugin")
1370 (description "Gajim-OpenPGP is a plugin that adds support for the OpenPGP
1371 Encryption to Gajim.")
1372 (home-page "https://dev.gajim.org/gajim/gajim-plugins/-/wikis/OpenPGPplugin")
1373 (license license:gpl3+)))
1383 (string-append "https://github.com/dino/dino/releases/download/v"
1384 version "/dino-" version ".tar.gz"))
1386 (base32 "07nw275xfamczzvzps8hsnpbhzvr4qc726fx92w8ncmdag7wlw1r"))))
1387 (build-system cmake-build-system)
1388 (outputs '("out" "debug"))
1390 (list #:configure-flags #~(list "-DBUILD_TESTS=true")
1391 #:parallel-build? #f ; not supported
1392 #:modules '((guix build cmake-build-system)
1393 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
1395 #:imported-modules `(,@%gnu-build-system-modules
1396 (guix build cmake-build-system)
1397 (guix build glib-or-gtk-build-system))
1399 #~(modify-phases %standard-phases
1401 (add-after 'install 'wrap
1402 (lambda* (#:key outputs #:allow-other-keys)
1403 (let* ((out (assoc-ref outputs "out"))
1404 (dino (string-append out "/bin/dino"))
1405 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
1407 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))
1408 (add-after 'install 'glib-or-gtk-wrap
1409 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
1411 (lambda* (#:key tests? #:allow-other-keys)
1413 (invoke "./libdino-test")
1414 (invoke "./signal-protocol-vala-test")
1415 (invoke "./xmpp-vala-test")))))))
1417 (list gettext-minimal
1419 gobject-introspection
1430 gsettings-desktop-schemas
1431 gspell ;for spell-check support
1432 gstreamer ;for A/V support
1436 icu4c ;for emoji support
1437 libcanberra ;for sound-notification support
1441 libsignal-protocol-c
1443 libsrtp ;for calls support
1447 webrtc-audio-processing)) ;for A/V support
1448 (synopsis "Graphical Jabber/XMPP Client using GTK+/Vala")
1449 (description "Dino is a chat client for the desktop. It focuses on providing
1450 a minimal yet reliable Jabber/XMPP experience and having encryption enabled by
1452 (home-page "https://dino.im")
1453 (license license:gpl3+)))
1455 (define-public kaidan
1461 (uri (string-append "mirror://kde/unstable/kaidan/" version
1462 "/kaidan-" version ".tar.xz"))
1463 (modules '((guix build utils)))
1466 (delete-file-recursively "3rdparty")))
1468 (base32 "195iddv35gc3k83r226y17avsab2b9bszgd7z7ynbddsgbf75rx7"))))
1469 (build-system qt-build-system)
1471 (list #:configure-flags #~(list "-DBUILD_TESTS=true")))
1472 (native-inputs (list extra-cmake-modules
1476 (inputs (list kirigami
1489 (home-page "https://www.kaidan.im/")
1490 (synopsis "Qt-based XMPP/Jabber Client")
1491 (description "Kaidan is a chat client. It uses the open communication
1492 protocol XMPP (Jabber). The user interface makes use of Kirigami and QtQuick,
1493 while the back-end of Kaidan is entirely written in C++ using Qt and the
1494 Qt-based XMPP library QXmpp.")
1499 ;; src/{StatusBar.cpp|StatusBar.h|singleapp/*|hsluv-c/*}
1500 ;; utils/generate-license.py
1507 (define-public prosody
1513 (uri (string-append "https://prosody.im/downloads/source/"
1514 "prosody-" version ".tar.gz"))
1517 "1q84s9cq7cgzd295qxa2iy0r3vd3v3chbck62bdx3pd6skk19my6"))))
1518 (build-system gnu-build-system)
1520 `(#:tests? #f ;tests require "busted"
1521 #:configure-flags (list "--no-example-certs")
1522 #:modules ((ice-9 match)
1524 (guix build gnu-build-system)
1527 (modify-phases %standard-phases
1528 (add-after 'unpack 'fix-configure-script
1530 ;; The configure script aborts when it encounters unexpected
1531 ;; arguments. Make it more tolerant.
1532 (substitute* "configure"
1534 (add-after 'unpack 'fix-makefile
1536 (substitute* "GNUmakefile"
1537 ;; prosodyctl needs to read the configuration file.
1538 (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n")
1539 ;; prosodyctl needs a place to put auto-generated certificates.
1540 (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n"))))
1541 (add-after 'install 'wrap-programs
1542 (lambda* (#:key inputs outputs #:allow-other-keys)
1543 ;; Make sure all executables in "bin" find the required Lua
1544 ;; modules at runtime.
1545 (let* ((out (assoc-ref outputs "out"))
1546 (bin (string-append out "/bin/"))
1547 (deps (delete #f (map (match-lambda
1548 ((label . directory)
1549 (if (string-prefix? "lua" label)
1552 (lua-path (string-join
1555 path "/share/lua/5.2/?.lua;"
1556 path "/share/lua/5.2/?/?.lua"))
1559 (lua-cpath (string-join
1562 path "/lib/lua/5.2/?.so;"
1563 path "/lib/lua/5.2/?/?.so"))
1566 (openssl (assoc-ref inputs "openssl"))
1567 (coreutils (assoc-ref inputs "coreutils"))
1568 (path (map (lambda (dir)
1569 (string-append dir "/bin"))
1570 (list openssl coreutils))))
1571 (for-each (lambda (file)
1573 `("LUA_PATH" ";" = (,lua-path))
1574 `("LUA_CPATH" ";" = (,lua-cpath))
1575 `("PATH" ":" prefix ,path)))
1576 (find-files bin ".*"))))))))
1586 (home-page "https://prosody.im/")
1587 (synopsis "Jabber (XMPP) server")
1588 (description "Prosody is a modern XMPP communication server. It aims to
1589 be easy to set up and configure, and efficient with system resources.
1590 Additionally, for developers it aims to be easy to extend and give a flexible
1591 system on which to rapidly develop added functionality, or prototype new
1593 (license license:x11)))
1595 (define-public prosody-http-upload
1596 (let ((changeset "765735bb590b")
1599 (name "prosody-http-upload")
1600 (version (string-append "0-" revision "." (string-take changeset 7)))
1604 (url "https://hg.prosody.im/prosody-modules/")
1605 (changeset changeset)))
1606 (file-name (string-append name "-" version "-checkout"))
1609 "142wrcism70nf8ffahhd961cqg2pi1h7ic8adfs3zwh0j3pnf41f"))))
1610 (build-system trivial-build-system)
1612 '(#:modules ((guix build utils))
1615 (use-modules (guix build utils))
1616 (let ((out (assoc-ref %outputs "out"))
1617 (source (assoc-ref %build-inputs "source")))
1618 (with-directory-excursion (in-vicinity source "mod_http_upload")
1619 (install-file "mod_http_upload.lua" out))
1621 (home-page "https://modules.prosody.im/mod_http_upload.html")
1622 (synopsis "XEP-0363: Allow clients to upload files over HTTP")
1623 (description "This module implements XEP-0363: it allows clients to
1624 upload files over HTTP.")
1625 (license (package-license prosody)))))
1627 (define-public prosody-smacks
1628 (let ((changeset "67f1d1f22625")
1631 (name "prosody-smacks")
1632 (version (string-append "0-" revision "." (string-take changeset 7)))
1636 (url "https://hg.prosody.im/prosody-modules/")
1637 (changeset changeset)))
1638 (file-name (string-append name "-" version "-checkout"))
1641 "020ngpax30fgarah98yvlj0ni8rcdwq60if03a9hqdw8mic0nxxs"))))
1642 (build-system trivial-build-system)
1644 '(#:modules ((guix build utils))
1647 (use-modules (guix build utils))
1648 (let ((out (assoc-ref %outputs "out"))
1649 (source (assoc-ref %build-inputs "source")))
1650 (with-directory-excursion (in-vicinity source "mod_smacks")
1651 (install-file "mod_smacks.lua" out))
1653 (home-page "https://modules.prosody.im/mod_smacks.html")
1654 (synopsis "XEP-0198: Reliability and fast reconnects for XMPP")
1655 (description "This module implements XEP-0198: when supported by both
1656 the client and server, it can allow clients to resume a disconnected session,
1657 and prevent message loss.")
1658 (license (package-license prosody)))))
1660 (define-public libtoxcore
1661 (let ((revision "2")
1662 (commit "bf69b54f64003d160d759068f4816b2d9b2e1e21"))
1665 (version (string-append "0.0.0" "-"
1666 revision "."(string-take commit 7)))
1670 (url "https://github.com/irungentoo/toxcore")
1672 (file-name (string-append name "-" version "-checkout"))
1675 "11lqra4yd7v293cp286ynff5lqz1pprzg8vn3wq6vryj08g88zqb"))))
1676 (build-system gnu-build-system)
1677 (arguments `(#:tests? #f)) ; FIXME: tests hang, some fail.
1679 (list autoconf automake libtool check pkg-config))
1681 (list libsodium opus libvpx))
1682 (synopsis "Library for the Tox encrypted messenger protocol")
1684 "C library implementation of the Tox encrypted messenger protocol.")
1685 (license license:gpl3+)
1686 (home-page "https://tox.chat"))))
1688 ;; Some tox clients move to c-toxcore, which seems to be where all the
1689 ;; recent development happens. It is run by the same developers as toxcore,
1690 ;; forked into a group namespace.
1691 (define-public c-toxcore
1699 (url "https://github.com/TokTok/c-toxcore")
1700 (commit (string-append "v" version))))
1701 (file-name (git-file-name name version))
1704 "0a6sqpm00d2rn0nviqfz4gh9ck1wzci6rxgmqmcyryl5ca19ffvp"))))
1706 `(#:tests? #f)) ; FIXME: Testsuite seems to stay stuck on test 3. Disable
1708 (build-system cmake-build-system)
1712 (list libsodium opus libvpx))
1713 (home-page "https://tox.chat")
1714 (synopsis "Library for the Tox encrypted messenger protocol")
1716 "Official fork of the C library implementation of the Tox encrypted
1717 messenger protocol.")
1718 (license license:gpl3+)))
1728 (url "https://github.com/uTox/uTox")
1729 (commit (string-append "v" version))
1730 (recursive? #t))) ;; Needed for 'minini' git submodule.
1731 (file-name (string-append name "-" version "-checkout"))
1734 "01rvlf94d4rkrygnnjak3cg16hrrqyi1rn9nx65y17qk2nbyh68g"))))
1735 (build-system cmake-build-system)
1737 `(#:configure-flags '("-DENABLE_TESTS=on")
1739 (modify-phases %standard-phases
1740 (add-before 'build 'patch-absolute-filename-libgtk-3
1741 (lambda* (#:key inputs outputs #:allow-other-keys)
1742 (substitute* "../source/src/xlib/gtk.c"
1744 (search-input-file inputs "/lib/libgtk-3.so")))))
1745 (add-after 'install 'wrap-program
1746 (lambda* (#:key inputs outputs #:allow-other-keys)
1747 (wrap-program (string-append (assoc-ref outputs "out")
1749 ;; For GtkFileChooserDialog.
1750 `("GSETTINGS_SCHEMA_DIR" =
1751 (,(string-append (assoc-ref inputs "gtk+")
1752 "/share/glib-2.0/schemas")))))))))
1755 ("filteraudio" ,filteraudio)
1756 ("fontconfig" ,fontconfig)
1757 ("freetype" ,freetype)
1758 ("c-toxcore" ,c-toxcore)
1762 ("libxext" ,libxext)
1763 ("libxrender" ,libxrender)
1765 ("v4l-utils" ,v4l-utils)))
1767 (list check pkg-config))
1768 (synopsis "Lightweight Tox client")
1770 "uTox is a lightweight Tox client. Tox is a distributed and secure
1771 instant messenger with audio and video chat capabilities.")
1772 (home-page "https://github.com/uTox/uTox")
1773 (license license:gpl3)))
1781 (uri (string-append "https://github.com/qTox/qTox/releases"
1782 "/download/v" version
1783 "/v" version ".tar.gz"))
1786 "1ml8z1xpp3qhip4vkr375jf7y5kc18g0apm91n5am6ricx37c01r"))
1787 (file-name (string-append name "-" version ".tar.gz"))))
1788 (build-system cmake-build-system)
1791 #~(modify-phases %standard-phases
1792 (add-after 'unpack 'fix-reproducibility-issues
1794 (substitute* "src/main.cpp"
1795 (("__DATE__") "\"\"")
1796 (("__TIME__") "\"\"")
1797 (("TIMESTAMP") "\"\""))))
1798 (add-after 'unpack 'disable-network-tests
1800 ;; These tests require network access.
1801 (substitute* "cmake/Testing.cmake"
1802 (("auto_test\\(core core\\)") "# auto_test(core core)")
1803 (("auto_test\\(net bsu\\)") "# auto_test(net bsu)"))))
1804 ;; Ensure that icons are found at runtime.
1805 (add-after 'install 'wrap-executable
1806 (lambda* (#:key inputs outputs #:allow-other-keys)
1807 (let ((out (assoc-ref outputs "out")))
1808 (wrap-program (string-append out "/bin/qtox")
1809 `("QT_PLUGIN_PATH" prefix
1810 ,(list (search-input-directory
1811 inputs "lib/qt5/plugins/"))))))))))
1813 (list pkg-config qttools))
1831 (home-page "https://qtox.github.io/")
1832 (synopsis "Tox chat client using Qt")
1833 (description "qTox is a Tox client that follows the Tox design
1834 guidelines. It provides an easy to use application that allows you to
1835 connect with friends and family without anyone else listening in.")
1836 (license license:gpl3+)))
1838 (define-public ytalk
1845 (uri (string-append "ftp://ftp.ourproject.org/pub/ytalk/ytalk-"
1849 "1d3jhnj8rgzxyxjwfa22vh45qwzjvxw1qh8fz6b7nfkj3zvk9jvf"))))
1850 (build-system gnu-build-system)
1853 (home-page "https://ytalk.ourproject.org")
1854 (synopsis "Multi-user chat program")
1855 (description "Ytalk is a replacement for the BSD talk program. Its main
1856 advantage is the ability to communicate with any arbitrary number of users at
1857 once. It supports both talk protocols (\"talk\" and \"ntalk\") and can communicate
1858 with several different talk daemons at the same time.")
1859 (license license:gpl2+)))
1861 (define-public gloox
1868 (uri (string-append "https://camaya.net/download/gloox-"
1869 version ".tar.bz2"))
1871 (base32 "1jgrd07qr9jvbb5hcmhrqz4w4lvwc51m30jls1fgxf1f5az6455f"))))
1872 (build-system gnu-build-system)
1874 (list libidn gnutls zlib))
1877 (synopsis "Portable high-level Jabber/XMPP library for C++")
1879 "gloox is a full-featured Jabber/XMPP client library,
1880 written in ANSI C++. It makes writing spec-compliant clients easy
1881 and allows for hassle-free integration of Jabber/XMPP functionality
1882 into existing applications.")
1883 (home-page "https://camaya.net/gloox")
1884 (license license:gpl3)))
1886 (define-public perl-net-psyc
1888 (name "perl-net-psyc")
1893 (uri (string-append "https://perl.psyc.eu/"
1894 "perlpsyc-" version ".zip"))
1895 (file-name (string-append name "-" version ".zip"))
1898 "0vsjclglkwgbyd9m5ad642fyysxw2x725nhq4r2m9pvqaq6s5yf2"))))
1899 (build-system perl-build-system)
1903 (list perl-curses perl-io-socket-ssl))
1906 (modify-phases %standard-phases
1907 (delete 'configure) ; No configure script
1908 ;; There is a Makefile, but it does not install everything
1909 ;; (leaves out psycion) and says
1910 ;; "# Just to give you a rough idea". XXX: Fix it upstream.
1912 (lambda _ (invoke "make" "manuals")))
1914 (lambda* (#:key outputs #:allow-other-keys)
1915 (let* ((out (assoc-ref outputs "out"))
1916 (doc (string-append out "/share/doc/perl-net-psyc"))
1917 (man1 (string-append out "/share/man/man1"))
1918 (man3 (string-append out "/share/man/man3"))
1919 (bin (string-append out "/bin"))
1920 (libpsyc (string-append out "/lib/psyc/ion"))
1921 (libperl (string-append out "/lib/perl5/site_perl/"
1922 ,(package-version perl))))
1924 (copy-recursively "lib/perl5" libperl)
1925 (copy-recursively "lib/psycion" libpsyc)
1926 (copy-recursively "bin" bin)
1927 (install-file "cgi/psycpager" (string-append doc "/cgi"))
1928 (copy-recursively "contrib" (string-append doc "/contrib"))
1929 (copy-recursively "hooks" (string-append doc "/hooks"))
1930 (copy-recursively "sdj" (string-append doc "/sdj"))
1931 (install-file "README.txt" doc)
1932 (install-file "TODO.txt" doc)
1933 (copy-recursively "share/man/man1" man1)
1934 (copy-recursively "share/man/man3" man3)
1936 (add-after 'install 'wrap-programs
1937 (lambda* (#:key outputs #:allow-other-keys)
1938 ;; Make sure all executables in "bin" find the Perl modules
1939 ;; provided by this package at runtime.
1940 (let* ((out (assoc-ref outputs "out"))
1941 (bin (string-append out "/bin/"))
1942 (path (getenv "PERL5LIB")))
1943 (for-each (lambda (file)
1945 `("PERL5LIB" ":" prefix (,path))))
1946 (find-files bin "\\.*$"))
1949 "@code{Net::PSYC} with support for TCP, UDP, Event.pm, @code{IO::Select} and
1950 Gtk2 event loops. This package includes 12 applications and additional scripts:
1951 psycion (a @uref{https://about.psyc.eu,PSYC} chat client), remotor (a control console
1952 for @uref{https://torproject.org,tor} router) and many more.")
1953 (synopsis "Perl implementation of PSYC protocol")
1954 (home-page "https://perl.psyc.eu")
1955 (license (list license:gpl2
1956 license:perl-license
1957 ;; contrib/irssi-psyc.pl:
1958 license:public-domain
1959 ;; bin/psycplay states AGPL with no version:
1962 (define-public libpsyc
1965 (version "20160913")
1968 (uri (string-append "http://www.psyced.org/files/"
1969 name "-" version ".tar.xz"))
1972 "14q89fxap05ajkfn20rnhc6b1h4i3i2adyr7y6hs5zqwb2lcmc1p"))))
1973 (build-system gnu-build-system)
1975 (list perl netcat procps))
1979 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1981 (modify-phases %standard-phases
1982 ;; The rust bindings are the only ones in use, the lpc bindings
1983 ;; are in psyclpc. The other bindings are not used by anything,
1984 ;; the chances are high that the bindings do not even work,
1985 ;; therefore we do not include them.
1986 ;; TODO: Get a cargo build system in Guix.
1987 (delete 'configure)))) ; no configure script
1988 (home-page "https://about.psyc.eu/libpsyc")
1990 "@code{libpsyc} is a PSYC library in C which implements
1991 core aspects of PSYC, useful for all kinds of clients and servers
1993 (synopsis "PSYC library in C")
1994 (license license:agpl3+)))
1996 (define-public loudmouth
2003 (uri (string-append "https://mcabber.com/files/loudmouth/"
2004 name "-" version ".tar.bz2"))
2007 "03adv5xc84l9brcx0dpyqyffmsclans8yfrpnd357k6x3wfckjri"))))
2008 (build-system gnu-build-system)
2009 (outputs '("out" "doc"))
2015 (string-append "--with-html-dir="
2016 (assoc-ref %outputs "doc")
2017 "/share/gtk-doc/html"))
2020 "CFLAGS=-Wno-error=all")))
2025 ("libidn" ,libidn)))
2027 (list pkg-config check
2028 `(,glib "bin") ; gtester
2030 (home-page "https://mcabber.com/")
2032 "Loudmouth is a lightweight and easy-to-use C library for programming
2033 with the XMPP (formerly known as Jabber) protocol. It is designed to be
2034 easy to get started with and yet extensible to let you do anything the XMPP
2036 (synopsis "Asynchronous XMPP library")
2037 ;; The files have LGPL2.0+ headers, but COPYING specifies LGPL2.1.
2038 (license license:lgpl2.0+)))
2040 (define-public mcabber
2047 (uri (string-append "https://mcabber.com/files/"
2048 name "-" version ".tar.bz2"))
2050 (base32 "0q1i5acyghsmzas88qswvki8kkk2nfpr8zapgnxbcd3lwcxl38f4"))))
2051 (build-system gnu-build-system)
2058 "--enable-aspell")))
2070 ("pkg-config" ,pkg-config)
2071 ("python" ,python-wrapper)))
2072 (home-page "https://mcabber.com")
2074 "Mcabber is a small XMPP (Jabber) console client, which includes features
2075 such as SASL and TLS support, @dfn{Multi-User Chat} (MUC) support, logging,
2076 command-completion, OpenPGP encryption, @dfn{Off-the-Record Messaging} (OTR)
2077 support, and more.")
2078 (synopsis "Small XMPP console client")
2079 (license license:gpl2+)))
2081 (define-public freetalk
2087 (uri (string-append "mirror://gnu/freetalk/freetalk-"
2091 "105mw7pg2mcp85r82cs4rv77nwvbw8025047364jzbq6lwllynxv"))))
2092 (build-system gnu-build-system)
2095 #~(modify-phases %standard-phases
2096 (add-after 'install 'wrap-program
2097 (lambda* (#:key inputs outputs #:allow-other-keys)
2098 (let ((out (assoc-ref outputs "out")))
2099 (wrap-program (string-append out "/bin/freetalk")
2101 ,(map (lambda (command)
2104 inputs (string-append "bin/" command))))
2105 ;; This list is not exhaustive: we assume that,
2106 ;; e.g., cat is packaged with other coreutils.
2107 (list "bash" ; src/{commands,util}.c et al
2108 "cat" ; extensions/first-time-run.sh
2109 "less")))))))))) ; extensions/history.scm.
2111 (list autoconf automake pkg-config texinfo))
2119 (synopsis "Extensible console-based Jabber client")
2121 "GNU Freetalk is a command-line Jabber/XMPP chat client. It notably uses
2122 the Readline library to handle input, so it features convenient navigation of
2123 text as well as tab-completion of buddy names, commands and English words. It
2124 is also scriptable and extensible via Guile.")
2125 (home-page "https://www.gnu.org/software/freetalk/")
2126 (license license:gpl3+)))
2128 (define-public libstrophe
2136 (url "https://github.com/strophe/libstrophe")
2138 (file-name (git-file-name name version))
2140 (base32 "1apply301lxyjax2677bd5mc0a3233nm5qb7fiqpawq2n7vh17v0"))))
2141 (build-system gnu-build-system)
2143 (list #:configure-flags '(list "--disable-static")
2145 #~(modify-phases %standard-phases
2146 (add-after 'unpack 'patch-make
2148 (substitute* "Makefile.am"
2149 (("'\\^xmpp_'") "'.'"))
2151 (add-after 'install-licence-files 'install-extra-licence-files
2153 (let ((license-directory (string-append #$output
2155 #$name "-" #$version "/")))
2156 (install-file "MIT-LICENSE.txt" license-directory)))))))
2158 (list expat openssl))
2160 (list autoconf automake libtool pkg-config))
2161 (synopsis "C library for writing XMPP clients")
2162 (description "Libstrophe is a minimal XMPP library written in C. It has
2163 almost no external dependencies, only an XML parsing library (expat or libxml
2164 are both supported).")
2165 (home-page "https://strophe.im/libstrophe/")
2167 (license (list license:gpl3+ license:x11))))
2169 (define-public profanity
2177 (string-append "https://profanity-im.github.io/tarballs/profanity-"
2181 "0vihmlzxr6n3y6v0vdzzxh5p1i09p0hx6sd1b2pnpcgkgcg4hi73"))))
2182 (build-system glib-or-gtk-build-system)
2187 "--enable-notifications"
2188 "--enable-python-plugins"
2189 "--enable-c-plugins"
2194 "--enable-icons-and-clipboard")))
2211 libsignal-protocol-c
2218 (synopsis "Console-based XMPP client")
2219 (description "Profanity is a console based XMPP client written in C
2220 using ncurses and libmesode, inspired by Irssi.")
2221 (home-page "https://profanity-im.github.io")
2222 (properties `((release-monitoring-url . ,home-page)))
2223 (license license:gpl3+)))
2225 (define-public libircclient
2227 (name "libircclient")
2232 (uri (string-append "mirror://sourceforge/libircclient/libircclient/"
2233 version "/libircclient-" version ".tar.gz"))
2236 "0b9wa0h3xc31wpqlvgxgnvqp5wgx3kwsf5s9432m5cj8ycx6zcmv"))))
2237 (build-system gnu-build-system)
2242 (list (string-append "--libdir="
2243 (assoc-ref %outputs "out") "/lib")
2247 #:tests? #f)) ; no test suite
2248 (home-page "https://www.ulduzsoft.com/libircclient/")
2249 (synopsis "Library implementing the client IRC protocol")
2250 (description "Libircclient is a library which implements the client IRC
2251 protocol. It is designed to be small, fast, portable and compatible with the
2252 RFC standards as well as non-standard but popular features. It can be used for
2253 building the IRC clients and bots.")
2254 (license license:lgpl3+)))
2256 (define-public toxic
2264 (url "https://github.com/JFreegman/toxic")
2265 (commit (string-append "v" version))))
2267 (base32 "0p1cmj1kyp506y5xm04mhlznhf5wcylvgsn6b307ms91vjqs3fg2"))
2268 (file-name (git-file-name name version))))
2269 (build-system gnu-build-system)
2271 `(#:tests? #f ; no tests
2275 (string-append "PREFIX="
2276 (assoc-ref %outputs "out")))
2278 (modify-phases %standard-phases
2280 (add-before 'build 'enable-python-scripting
2282 ;; XXX: For compatibility with Python 3.8, adjust python3-config
2283 ;; invokation to include --embed; see
2284 ;; <https://github.com/JFreegman/toxic/issues/533>.
2285 (substitute* "cfg/checks/python.mk"
2286 (("python3-config --ldflags")
2287 "python3-config --ldflags --embed"))
2288 (setenv "ENABLE_PYTHON" "1")
2294 gdk-pixbuf ; for libnotify.pc
2306 (home-page "https://github.com/JFreegman/toxic")
2307 (synopsis "Tox chat client using ncurses")
2308 (description "Toxic is a console-based instant messaging client, using
2309 c-toxcore and ncurses. It provides audio calls, sound and desktop
2310 notifications, and Python scripting support.")
2311 (license license:gpl3+)))
2313 (define-public libqmatrixclient
2315 (name "libqmatrixclient")
2321 (url "https://github.com/quotient-im/libQuotient")
2323 (file-name (git-file-name name version))
2325 (base32 "0gkwr3yw6k2m0j8cc085b5p2q788rf5nhp1p5hc5d55pc7mci2qs"))))
2326 (build-system cmake-build-system)
2328 (list qtbase-5 qtmultimedia-5))
2330 `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON")
2331 #:tests? #f)) ; no tests
2332 (home-page "https://matrix.org/docs/projects/sdk/libqmatrixclient.html")
2333 (synopsis "Qt5 client library for the Matrix instant messaging protocol")
2334 (description "libqmatrixclient is a Qt5 library to write clients for the
2335 Matrix instant messaging protocol. Quaternion is the reference client
2336 implementation. Quaternion and libqmatrixclient together form the
2337 QMatrixClient project.")
2338 (license license:lgpl2.1+)))
2340 (define-public mtxclient
2348 (url "https://github.com/Nheko-Reborn/mtxclient")
2349 (commit (string-append "v" version))))
2350 (file-name (git-file-name name version))
2352 (base32 "0kgz9i3xgyk1a82sv48a1m8gdxg0cl5pgd5imgwy519vvjlkwv48"))))
2356 ;; Disable example binaries (not installed)
2357 "-DBUILD_LIB_EXAMPLES=OFF")
2359 (modify-phases %standard-phases
2360 (add-before 'configure 'disable-network-tests
2362 (substitute* "CMakeLists.txt"
2363 (("add_test\\((BasicConnectivity|ClientAPI|Devices|MediaAPI|Encryption|Pushrules)")
2365 (build-system cmake-build-system)
2378 (list googletest pkg-config))
2379 (home-page "https://github.com/Nheko-Reborn/mtxclient")
2380 (synopsis "Client API library for the Matrix protocol")
2381 (description "@code{mtxclient} is a C++ library that implements client API
2382 for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
2383 (license license:expat)))
2385 (define-public nheko
2393 (url "https://github.com/Nheko-Reborn/nheko")
2394 (commit (string-append "v" version))))
2395 (file-name (git-file-name name version))
2397 (base32 "1941jvk72qy9g41cs2p3d6fphkg8ccjlsiclwymvzdyi7s3ilml7"))
2398 (modules '((guix build utils)))
2401 (delete-file-recursively "third_party")))))
2404 #:tests? #f ;no test target
2406 #~(list "-DCMAKE_BUILD_TYPE=Release"
2408 ;; Fix required because we are using a static SingleApplication
2409 "-DCMAKE_CXX_FLAGS= \"-DQAPPLICATION_CLASS=QApplication\" "
2410 ;; Compile Qml will make Nheko faster, but you will need to recompile
2411 ;; it, when you update Qt. That's fine for us.
2414 #~(modify-phases %standard-phases
2415 (add-after 'unpack 'unbundle-dependencies
2417 (let ((single-app #$(this-package-input "single-application-qt5")))
2418 (substitute* "CMakeLists.txt"
2419 ;; Remove include and source dirs,replace with the correct one
2420 (("third_party/blurhash/blurhash.cpp") "")
2421 (("third_party/cpp-httplib-0.5.12")
2422 (string-append "\"" single-app "/include\""))
2423 (("add_subdirectory.*third_party/SingleApplication.*") "")
2424 ;; Link using the correct static/shared libs
2425 (("SingleApplication::SingleApplication")
2427 ;; Dynamic libraries
2428 "httplib" "\n" "blurhash" "\n"
2430 single-app "/lib/libSingleApplication.a"))))))
2431 (add-after 'unpack 'fix-determinism
2433 ;; Make Qt deterministic.
2434 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")))
2435 (add-after 'install 'wrap-program
2437 (let ((gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
2438 (wrap-program (string-append #$output "/bin/nheko")
2439 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))))))))
2440 (build-system qt-build-system)
2449 gst-plugins-bad ; sdp & webrtc for voip
2450 gst-plugins-good ; rtpmanager for voip
2467 single-application-qt5
2471 (list asciidoc doxygen graphviz pkg-config qttools))
2472 (home-page "https://github.com/Nheko-Reborn/nheko")
2473 (synopsis "Desktop client for Matrix using Qt and C++14")
2474 (description "@code{Nheko} want to provide a native desktop app for the
2475 Matrix protocol that feels more like a mainstream chat app and less like an IRC
2478 Many matrix features are supported, including user registration, rooms, typing
2479 notification, emojis, E2E encryption, and voip calls.")
2480 (license license:gpl3+)))
2482 (define-public quaternion
2485 (version "0.0.9.4f")
2486 (outputs '("out" "debug"))
2491 (url "https://github.com/quotient-im/Quaternion")
2493 (file-name (git-file-name name version))
2495 (base32 "1q9ddz4rs02a0w3lwrsjnh59khv38cq9f0kv09vnwvazvayn87ck"))))
2496 (build-system qt-build-system)
2498 (list libqmatrixclient
2508 `(#:tests? #f)) ; no tests
2509 (home-page "https://matrix.org/docs/projects/client/quaternion.html")
2510 (synopsis "Graphical client for the Matrix instant messaging protocol")
2511 (description "Quaternion is a Qt5 desktop client for the Matrix instant
2512 messaging protocol. It uses libqmatrixclient and is its reference client
2513 implementation. Quaternion and libqmatrixclient together form the
2514 QMatrixClient project.")
2515 (license (list license:gpl3+ ; all source code
2516 license:lgpl3+)))) ; icons/breeze
2518 (define-public hangups
2525 (uri (pypi-uri "hangups" version))
2527 (base32 "12mq22lygh6vz2h5dpvyjk18hx3jphb4kkavqsy298c7hw60hn7l"))))
2528 (build-system python-build-system)
2531 (modify-phases %standard-phases
2532 (add-before 'build 'relax-dependencies
2533 ;; Relax overly strict package version specifications.
2535 (substitute* "setup.py"
2539 (lambda* (#:key tests? #:allow-other-keys)
2541 (invoke "pytest" "hangups")))))))
2543 (list python-aiohttp
2545 python-async-timeout
2546 python-configargparse
2547 python-mechanicalsoup
2554 (list python-httpretty python-pytest))
2555 (home-page "https://hangups.readthedocs.io/")
2556 (synopsis "Instant messaging client for Google Hangouts")
2558 "Hangups is an instant messaging client for Google Hangouts. It includes
2559 both a Python library and a reference client with a text-based user interface.
2561 Hangups is implements a reverse-engineered version of Hangouts' proprietary,
2562 non-interoperable protocol, which allows it to support features like group
2563 messaging that aren’t available to clients that connect over XMPP.")
2564 (license license:expat)))
2566 (define-public telegram-purple
2568 (name "telegram-purple")
2570 (home-page "https://github.com/majn/telegram-purple")
2575 (commit (string-append "v" version))
2579 "14h8lvj0kjvy1b5i84ha2w9rl3akxjwwvsp5j4dcxwfghrkzqgf2"))
2580 (modules '((guix build utils)))
2583 (substitute* "Makefile.in"
2584 ;; By default these two directories point to Pidgin's own
2586 (("^PLUGIN_DIR_PURPLE=.*")
2588 "exec_prefix := @exec_prefix@\n"
2589 "PLUGIN_DIR_PURPLE := @libdir@/purple-2\n"))
2590 (("^DATA_ROOT_DIR_PURPLE=.*")
2591 "DATA_ROOT_DIR_PURPLE := @datarootdir@\n")
2593 ;; Honor sysconfdir instead of trying to write to /etc.
2594 (("DESTDIR\\)/etc/telegram-purple")
2595 "DESTDIR)@sysconfdir@/telegram-purple"))
2597 (patches (search-patches "telegram-purple-adjust-test.patch"))
2598 (file-name (git-file-name name version))))
2599 (build-system gnu-build-system)
2601 `(("pkg-config" ,pkg-config)
2602 ("gettext" ,gettext-minimal)
2613 (modify-phases %standard-phases
2614 ;; We're using release tag for repository checkout - let's prepare
2615 ;; header defining GIT_COMMIT manually instead of running git to
2616 ;; identify version which is being compiled. Git repository
2617 ;; is removed anyway and only source code is kept.
2618 (add-after 'unpack 'prepare-commit.h
2620 (with-output-to-file "./commit.h"
2623 (string-append "//generated by guix, use version instead of "
2625 "#ifndef GIT_COMMIT\n"
2626 "# define GIT_COMMIT \"v"
2630 (add-before 'configure 'set-SHELL-variables
2631 ;; Set these environment variables so that 'tgl/configure' uses the
2632 ;; right shell and not /bin/sh.
2634 (let ((bash (which "bash")))
2635 (setenv "SHELL" bash)
2636 (setenv "CONFIG_SHELL" bash)
2638 (synopsis "Telegram messaging support for Pidgin")
2640 "Telegram-purple is a plugin for Libpurple, the communication library
2641 used by the Pidgin instant messaging client, that adds support for the
2644 This package is on ``life support'' until @code{tdlib-purple} is a full
2647 ;; Code under tgl/ (the Telegram library) is LGPLv2.1+, but the plugin
2648 ;; itself is GPLv2+.
2649 (license license:gpl2+)))
2651 (define-public tdlib
2659 (url "https://github.com/tdlib/td")
2660 (commit (string-append "v" version))))
2662 (base32 "19psqpyh9a2kzfdhgqkirpif4x8pzy89phvi59dq155y30a3661q"))
2663 (file-name (git-file-name name version))))
2664 (build-system cmake-build-system)
2667 (list "-DCMAKE_BUILD_TYPE=Release"
2668 "-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work.
2670 (modify-phases %standard-phases
2671 (add-after 'unpack 'remove-failing-tests
2673 (substitute* "test/CMakeLists.txt"
2674 ;; The test cases are compiled into a distinct binary
2675 ;; which uses mtproto.cpp to attempt to connect to
2676 ;; a remote server. Removing this file from the sources
2677 ;; list disables those specific test cases.
2678 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") "")))))))
2680 (list gperf openssl zlib php doxygen))
2681 (synopsis "Cross-platform library for building Telegram clients")
2682 (description "Tdlib is a cross-platform library for creating custom
2683 Telegram clients following the official Telegram API. It can be easily used
2684 from almost any programming language with a C-FFI and features first-class
2685 support for high performance Telegram Bot creation.")
2686 (home-page "https://core.telegram.org/tdlib")
2687 (license license:boost1.0)))
2689 (define-public purple-mm-sms
2691 (name "purple-mm-sms")
2696 (url "https://source.puri.sm/Librem5/purple-mm-sms.git")
2697 (commit (string-append "v" version))))
2698 (file-name (git-file-name name version))
2701 "1daf7zl8bhhm1szkgxflpqql69f2w9i9nlgf1n4p1nynxifz1bim"))))
2702 (build-system gnu-build-system)
2705 (let ((out (assoc-ref %outputs "out")))
2706 ;; Fix hardcoded paths
2707 (list (string-append "PREFIX=" out)
2708 (string-append "PLUGIN_DIR_PURPLE=" out "/lib/purple-2")
2709 (string-append "DATA_ROOT_DIR_PURPLE=" out "/share")))
2710 #:tests? #f ; no tests
2712 (modify-phases %standard-phases
2713 (delete 'configure))))
2715 `(("glib:bin" ,glib "bin")
2716 ("pkg-config" ,pkg-config)))
2718 (list modem-manager pidgin))
2719 (synopsis "Libpurple plugin for SMS via ModemManager")
2720 (description "Plugin for libpurple to allow sending SMS using ModemManager.")
2721 (home-page "https://source.puri.sm/Librem5/purple-mm-sms")
2722 (license license:gpl2+)))
2724 (define-public purple-lurch
2726 (name "purple-lurch")
2731 (uri (git-reference (url "https://github.com/gkdr/lurch")
2732 (commit (string-append "v" version))))
2733 (modules '((guix build utils)))
2737 (delete-file-recursively "lib")))
2739 (git-file-name name version))
2741 (base32 "1ipd9gwh04wbqv6c10yxi02lc2yjsr02hwjycgxhl4r9x8b33psd"))))
2742 (build-system cmake-build-system)
2744 `(#:phases (modify-phases %standard-phases
2746 (lambda* (#:key outputs #:allow-other-keys)
2747 (let ((out (assoc-ref outputs "out")))
2748 (substitute* "Makefile"
2749 (("^PURPLE_PLUGIN_DIR = .*")
2750 (string-append "PURPLE_PLUGIN_DIR = " out
2751 "/lib/purple-2\n")))
2752 (setenv "CC" "gcc")))))
2753 #:parallel-tests? #f))
2754 (native-inputs (list cmocka pkg-config))
2759 libsignal-protocol-c
2764 (synopsis "OMEMO Encryption for libpurple")
2765 (description "Purple-lurch plugin adds end-to-end encryption support
2766 through the Double Ratchet (Axolotl) algorithm, to @code{libpurple}
2767 applications using @acronym{XMPP, Extensible Messaging and Presence Protocol},
2768 through its standard XEP-0384: @acronym{OMEMO, OMEMO Multi-End Message and
2769 Object Encryption} Encryption. It provides confidentiality, (weak) forward
2770 secrecy, break-in recovery, authentication, integrity, deniability, and
2772 (home-page "https://github.com/gkdr/lurch")
2773 (license license:gpl3+)))
2775 (define-public libphonenumber
2777 (name "libphonenumber")
2782 (url "https://github.com/google/libphonenumber")
2783 (commit (string-append "v" version))))
2784 (file-name (git-file-name name version))
2785 (patches (search-patches
2786 "libphonenumber-reproducible-build.patch"))
2789 "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9"))))
2791 `(#:test-target "tests"
2793 (modify-phases %standard-phases
2794 (add-after 'unpack 'change-directory
2795 (lambda _ (chdir "cpp"))))))
2796 (build-system cmake-build-system)
2798 (list googletest pkg-config))
2800 (list boost protobuf icu4c))
2801 (synopsis "Library for parsing and using phone numbers")
2803 "This package provides a C++ library for parsing, formatting, and
2804 validating international phone numbers.")
2805 (home-page "https://github.com/google/libphonenumber")
2806 (license license:asl2.0)))
2808 (define-public chatty
2815 (url "https://source.puri.sm/Librem5/chatty.git")
2816 (commit (string-append "v" version))))
2817 (file-name (git-file-name name version))
2820 "12k1a5xrwd6zk4x0m53hbzggk695z3bpbzy1wcikzy0jvch7h13d"))))
2821 (build-system meson-build-system)
2824 (modify-phases %standard-phases
2825 (add-after 'unpack 'skip-updating-desktop-database
2827 (substitute* "meson.build"
2828 (("meson.add_install_script.*") "")))))))
2830 (list gettext-minimal `(,glib "bin") pkg-config protobuf))
2834 gsettings-desktop-schemas
2847 (list adwaita-icon-theme evolution-data-server))
2848 (synopsis "Mobile client for XMPP and SMS messaging")
2849 (description "Chatty is a chat program for XMPP and SMS. It works on mobile
2850 as well as on desktop platforms. It's based on libpurple and ModemManager.")
2851 (home-page "https://source.puri.sm/Librem5/chatty")
2852 (license license:gpl3+)))
2854 (define-public mosquitto
2861 (uri (string-append "https://mosquitto.org/files/source/mosquitto-"
2865 "1yq7y329baa1ly488rw125c3mvsnsa7kjkik602xv1xpkz8p73al"))))
2866 (build-system cmake-build-system)
2869 (synopsis "Message broker")
2870 (description "This package provides Eclipse Mosquitto, a message broker
2871 that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto
2872 is lightweight and is suitable for use on all devices from low power single
2873 board computers to full servers.
2875 The MQTT protocol provides a lightweight method of carrying out messaging
2876 using a publish/subscribe model. This makes it suitable for Internet of
2877 Things messaging such as with low power sensors or mobile devices such
2878 as phones, embedded computers or microcontrollers.")
2879 (home-page "https://mosquitto.org/")
2881 (license (list license:epl1.0 license:edl1.0))))
2883 (define-public movim-desktop
2884 (let ((commit "83d583b83629dbd2ec448da9a1ffd81f6c1fb295")
2887 (name "movim-desktop")
2889 (git-version "0.14.0" revision commit))
2895 (url "https://github.com/movim/movim_desktop")
2897 (file-name (git-file-name name version))
2899 (base32 "1lsa3k3wx1d2lk0qs0k5jc5bmapnmpzwynprjf2wihh8c8y3iwlz"))))
2900 (build-system qt-build-system)
2902 `(#:tests? #f ; No target
2904 (modify-phases %standard-phases
2905 (add-after 'unpack 'patch
2906 (lambda* (#:key outputs #:allow-other-keys)
2907 (substitute* `("CMakeLists.txt" "movim.desktop")
2909 (assoc-ref outputs "out"))
2914 (list qtbase-5 qtdeclarative-5 qtwebchannel))
2917 (home-page "https://movim.eu/")
2918 (synopsis "Desktop Application for Movim")
2920 "Movim-Desktop is a desktop application, relying on Qt, for the Movim
2921 social and chat platform.")
2922 (license license:gpl3+))))
2924 (define-public psi-plus
2927 (version "1.5.1484")
2933 (url "https://github.com/psi-plus/psi-plus-snapshots")
2935 (file-name (git-file-name name version))
2936 (modules '((guix build utils)))
2939 (delete-file-recursively "3rdparty")))
2941 (base32 "1jsm39nzzbqkp3zc0xqx7jid6p4q1ra28xad38wjr2l1jb8qjn24"))))
2942 (build-system qt-build-system)
2944 `(#:tests? #f ; No target
2946 (,@%qt-build-system-modules
2947 (guix build glib-or-gtk-build-system))
2949 ((guix build qt-build-system)
2950 ((guix build glib-or-gtk-build-system)
2951 #:prefix glib-or-gtk:)
2955 "-DBUILD_PSIMEDIA=ON" ; For A/V support
2956 "-DENABLE_PLUGINS=ON"
2957 "-DUSE_HUNSPELL=OFF" ; Use Enchant instead
2959 "-DUSE_CCACHE=OFF") ; Not required
2961 (modify-phases %standard-phases
2962 (add-after 'unpack 'patch-source
2964 (substitute* "CMakeLists.txt"
2965 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/http-parser/http_parser.h")
2967 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/qhttp.pro")
2969 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/qite.pro")
2971 (("add_subdirectory\\( 3rdparty \\)")
2973 (substitute* "src/CMakeLists.txt"
2974 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/libqite")
2976 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/http-parser")
2978 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/src/private")
2980 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/src")
2982 (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty")
2984 (("add_dependencies\\(\\$\\{PROJECT_NAME\\} qhttp\\)")
2985 "target_link_libraries(${PROJECT_NAME} qhttp)"))
2986 (substitute* "src/src.cmake"
2987 (("include\\(\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/libqite/libqite.cmake\\)")
2988 "list(APPEND EXTRA_LIBS qite)"))
2989 (substitute* '("src/filesharingmanager.h" "src/widgets/psirichtext.cpp"
2990 "src/filesharingmanager.cpp" "src/widgets/psitextview.cpp"
2991 "src/chatview_te.cpp" "src/msgmle.cpp")
2996 (("qiteaudiorecorder.h")
2997 "qite/qiteaudiorecorder.h"))
2999 (add-after 'install 'wrap-env
3000 (lambda* (#:key outputs #:allow-other-keys)
3001 (let ((out (assoc-ref outputs "out")))
3004 (let ((file (string-append out "/bin/" name))
3005 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))
3006 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
3008 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
3009 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))))
3012 (add-after 'wrap-env 'glib-or-gtk-compile-schemas
3013 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
3014 (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap
3015 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
3017 `(("glib:bin" ,glib "bin")
3018 ("gobject-introspection" ,gobject-introspection)
3020 ("pkg-config" ,pkg-config)
3021 ("python" ,python-wrapper)
3026 ("enchant" ,enchant)
3028 ("gstreamer" ,gstreamer)
3029 ("gst-plugins-base" ,gst-plugins-base)
3030 ("http-parser" ,http-parser)
3031 ("libgcrypt" ,libgcrypt)
3032 ("libgpg-error" ,libgpg-error)
3035 ("libsignal-protocol-c" ,libsignal-protocol-c)
3036 ("libtidy" ,tidy-html)
3037 ("openssl" ,openssl)
3041 ("qtbase" ,qtbase-5)
3042 ("qtkeychain" ,qtkeychain)
3043 ("qtmultimedia-5" ,qtmultimedia-5)
3044 ("qtsvg-5" ,qtsvg-5)
3045 ("qtx11extras" ,qtx11extras)
3046 ("usrsctp" ,usrsctp)
3050 ("xss" ,libxscrnsaver)
3052 (home-page "https://psi-plus.com/")
3053 (synopsis "Qt-based XMPP Client")
3055 "Psi+ is a spin-off of Psi XMPP client. It is a powerful XMPP client
3056 designed for experienced users.")
3057 (license license:gpl2+)))
3059 (define-public python-zulip
3061 (name "python-zulip")
3065 ;; There is no source on Pypi.
3068 (url "https://github.com/zulip/python-zulip-api")
3070 (file-name (git-file-name name version))
3073 "0da1ki1v252avy27j6d7snnc0gyq0xa9fypm3qdmxhw2w79d6q36"))))
3074 (build-system python-build-system)
3077 (modify-phases %standard-phases
3078 (add-after 'unpack 'cd-to-zulip-dir
3079 (lambda _ (chdir "zulip")))
3081 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3082 (let ((test-zulip "../tools/test-zulip"))
3084 (add-installed-pythonpath inputs outputs)
3085 (patch-shebang test-zulip)
3086 (invoke test-zulip))))))))
3088 (list python-matrix-client python-pyopenssl python-requests
3091 (list python-cython python-distro python-pytest))
3092 (home-page "https://github.com/zulip/python-zulip-api")
3093 (synopsis "Zulip's API Python bindings")
3095 "This package provides Python bindings to Zulip's API.")
3096 (license license:asl2.0)))
3098 (define-public zulip-term
3104 ;; Pypi package doesn't ship tests.
3107 (url "https://github.com/zulip/zulip-terminal")
3109 (file-name (git-file-name name version))
3112 "1xhhy3v4wck74a83avil0rnmsi2grrh03cww19n5mv80p2q1cjmf"))
3113 (modules '((guix build utils)))
3116 (substitute* "setup.py"
3117 (("\\=\\=1\\.7") ">=1.7") ; pytest-mock
3118 (("\\=\\=2\\.5") ">=2.5") ; pytest-cov
3119 (("4\\.5\\.2") "4.4.2")) ; lxml
3121 (build-system python-build-system)
3124 (modify-phases %standard-phases
3126 (lambda* (#:key tests? #:allow-other-keys)
3128 ;; Delete failing tests.
3129 (delete-file "tests/cli/test_run.py")
3133 (list python-beautifulsoup4
3135 python-mypy-extensions
3137 python-urwid-readline
3140 (list python-distro python-pytest python-pytest-cov
3141 python-pytest-mock))
3142 (home-page "https://github.com/zulip/zulip-terminal")
3143 (synopsis "Zulip's official terminal client")
3144 (description "This package contains Zulip's official terminal client.")
3145 (license license:asl2.0)))
3147 (define-public matterbridge
3149 (name "matterbridge")
3154 (url "https://github.com/42wim/matterbridge")
3155 (commit (string-append "v" version))))
3156 (file-name (git-file-name name version))
3159 "0cd70x9685162c0imdici1ipl9lziq700wzyb5bsg610wfak3ms7"))))
3160 ;; Using the go-build-system results in the same error message
3161 ;; than in the bug 1551[1]. So we fix it by running go build
3162 ;; manually in the git repository as-is as this is the solution
3163 ;; given to that bug by the matterbridge developers.
3164 ;; [1]https://github.com/42wim/matterbridge/issues/1551
3165 (build-system gnu-build-system)
3167 `(#:phases (modify-phases %standard-phases
3170 (lambda* (#:key outputs #:allow-other-keys)
3172 (string-append (getcwd) "/go-build"))
3174 (string-append (assoc-ref outputs "out") "/bin"))
3175 (invoke "go" "build" "-v" "-x")))
3177 (lambda* (#:key outputs tests? #:allow-other-keys)
3180 (string-append (getcwd) "/go-build"))
3182 (string-append (assoc-ref outputs "out")
3184 (invoke "go" "test" "-v" "-x"))))
3186 (lambda* (#:key outputs #:allow-other-keys)
3188 (string-append (getcwd) "/go-build"))
3190 (string-append (assoc-ref outputs "out") "/bin"))
3191 (invoke "go" "install" "-v" "-x"))))))
3192 (native-inputs (list go))
3193 (synopsis "Bridge together various messaging networks and protocols")
3195 "Relays messages between different channels from various
3196 messaging networks and protocols. So far it supports mattermost, IRC, gitter,
3197 xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp,
3198 keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST
3199 API. Mattermost is not required.")
3200 (home-page "https://github.com/42wim/matterbridge")
3201 (license license:asl2.0)))
3209 (uri (string-append "https://23.fi/jj/jj-" version ".tar.gz"))
3212 "02xz2ci93bccvil5iff804mh3zr5iqkf6zx5mxgraz17xg0azlgh"))))
3213 (build-system gnu-build-system)
3215 (list #:tests? #f ;There are no tests.
3217 #~(list (string-append "CC=" #$(cc-for-target))
3218 (string-append "PREFIX=" #$output))
3220 #~(modify-phases %standard-phases
3223 (lambda* (#:key inputs outputs #:allow-other-keys)
3224 (let* ((out (assoc-ref outputs "out"))
3225 (bin (string-append out "/bin")))
3226 (install-file "jj" bin)))))))
3227 (native-inputs (list pkg-config))
3228 (inputs (list glib loudmouth))
3229 (home-page "https://23.fi/jj/")
3230 (synopsis "FIFO based Jabber client")
3232 "jj is a simple file-system-based Jabber client, inspired by ii IRC
3233 client. Interaction with jj is done by writing and reading files from the
3234 server directory which jj creates. It is perfect for bots and
3236 (license license:expat)))
3238 (define-public pounce
3245 (uri (string-append "https://git.causal.agency/pounce/snapshot/pounce-"
3248 (base32 "1w4x34bspkqvk9p7bfj0zmvmbzvxb7lxrrr3g6lrfdj9f3qzfxpp"))))
3249 (build-system gnu-build-system)
3251 `(#:tests? #f ;there are no tests
3254 (string-append "CC=" ,(cc-for-target))
3255 (string-append "PREFIX=" %output))))
3257 (list pkg-config universal-ctags))
3260 (home-page "https://code.causal.agency/june/pounce")
3261 (synopsis "Simple multi-client TLS-only IRC bouncer")
3263 "@command{pounce} is a multi-client, TLS-only IRC bouncer. It maintains
3264 a persistent connection to an IRC server, acting as a proxy and buffer for
3265 a number of clients.")
3266 (license license:gpl3+)))
3268 (define-public weechat-matrix
3270 (name "weechat-matrix")
3276 (url "https://github.com/poljar/weechat-matrix")
3278 (file-name (git-file-name name version))
3281 "1iv55n4k05139f7jzkhczgw4qp6qwilrvfsy3c6v2m1kxffj12d3"))))
3282 (build-system python-build-system)
3285 (modify-phases %standard-phases
3288 (lambda* (#:key inputs outputs #:allow-other-keys)
3289 (let* ((weechat-python (string-append (assoc-ref outputs "out")
3290 "/share/weechat/python")))
3291 ;; Avoid circular import by renaming the matrix module to
3293 (substitute* (cons "main.py"
3294 (append (find-files "matrix")
3295 (find-files "tests")))
3296 (("from matrix") "from weechat_matrix")
3297 (("import matrix") "import weechat_matrix"))
3298 ;; Install python modules.
3299 (invoke "make" "install-lib"
3300 (string-append "INSTALLDIR="
3301 (site-packages inputs outputs)
3303 ;; Extend PYTHONPATH to find installed python modules.
3304 (add-installed-pythonpath inputs outputs)
3305 ;; Augment sys.path so that dependencies are found.
3306 (substitute* "main.py"
3307 (("import os\n" all)
3308 (apply string-append
3312 (string-append "sys.path.append('" path "')\n"))
3313 (string-split (getenv "GUIX_PYTHONPATH") #\:)))))
3315 (mkdir-p weechat-python)
3316 (copy-file "main.py"
3317 (string-append weechat-python "/matrix.py")))))
3319 (lambda* (#:key tests? #:allow-other-keys)
3321 (invoke "pytest")))))))
3323 (list python-matrix-nio python-pygments python-pyopenssl
3326 (list python-pytest))
3327 (home-page "https://github.com/poljar/weechat-matrix")
3328 (synopsis "Weechat Matrix protocol script")
3329 (description "@code{weechat-matrix} is a Python plugin for Weechat that lets
3330 Weechat communicate over the Matrix protocol.")
3331 (license license:isc)))
3333 (define-public weechat-wee-slack
3335 (name "weechat-wee-slack")
3341 (url "https://github.com/wee-slack/wee-slack")
3342 (commit (string-append "v" version))))
3343 (file-name (git-file-name name version))
3346 "0xfklr0gsc9jgxfyrrb2j756lclz9g8imcb0pk0xgyj8mhsw23zk"))))
3347 (build-system python-build-system)
3350 (modify-phases %standard-phases
3353 (lambda* (#:key inputs outputs #:allow-other-keys)
3354 ;; Augment sys.path so that dependencies are found.
3355 (substitute* "wee_slack.py"
3356 (("import sys\n" all)
3357 (apply string-append
3360 (string-append "sys.path.append('" path "')\n"))
3361 (string-split (getenv "GUIX_PYTHONPATH") #\:)))))
3363 (install-file "wee_slack.py"
3364 (string-append (assoc-ref outputs "out")
3365 "/share/weechat/python"))))
3367 (lambda* (#:key tests? #:allow-other-keys)
3369 (invoke "pytest")))))))
3371 (list python-websocket-client))
3373 (list python-pytest))
3374 (home-page "https://github.com/wee-slack/wee-slack")
3375 (synopsis "Weechat Slack script")
3376 (description "@code{weechat-wee-slack} is a WeeChat native client for
3377 Slack. It provides supplemental features only available in the web/mobile
3378 clients such as synchronizing read markers, typing notification, threads (and
3379 more)! It connects via the Slack API, and maintains a persistent websocket
3380 for notification of events.")
3381 (license license:expat)))
3383 (define-public python-librecaptcha
3385 (name "python-librecaptcha")
3390 (url "https://github.com/taylordotfish/librecaptcha")
3392 (file-name (string-append name "-" version "-checkout"))
3395 "0r35ws6vdf31j01kpacvpjplddm254r0cgy0npmhgnfxd5kpjf3s"))))
3396 (build-system python-build-system)
3398 (list python-pillow python-requests python-esprima python-pygobject gobject-introspection gtk+))
3399 (synopsis "Show CAPTCHA without running proprietary code.")
3400 (description "This package shows CAPTCHA without running proprietary code.")
3401 (home-page "https://github.com/taylordotfish/librecaptcha")
3402 (license license:gpl3+)))
3404 (define-public python-harmony
3406 (name "python-harmony")
3411 (url "https://github.com/taylordotfish/harmony.git")
3413 (file-name (string-append name "-" version "-checkout"))
3416 "1bm9xcnzpnpj6rlhbrnl2abwclzl7ivgh1vb5644y9mnhcs489js"))))
3417 (build-system python-build-system)
3421 (list python-librecaptcha python-keyring python-requests))
3422 (synopsis "Discord account management")
3423 (description "This package provides account management tools for
3425 (home-page "https://github.com/taylordotfish/harmony")
3426 (license license:gpl3+)))
3428 ;;; messaging.scm ends here