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 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2018, 2019 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 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2017, 2018, 2019, 2020 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 Nicolò Balzarotti <nicolo@nixo.xyz>
22 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
23 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages messaging)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages admin)
43 #:use-module (gnu packages aidc)
44 #:use-module (gnu packages aspell)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages avahi)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bash)
50 #:use-module (gnu packages bison)
51 #:use-module (gnu packages boost)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages compression)
54 #:use-module (gnu packages cpp)
55 #:use-module (gnu packages crypto)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages cyrus-sasl)
58 #:use-module (gnu packages databases)
59 #:use-module (gnu packages documentation)
60 #:use-module (gnu packages enchant)
61 #:use-module (gnu packages fontutils)
62 #:use-module (gnu packages gettext)
63 #:use-module (gnu packages glib)
64 #:use-module (gnu packages gnome)
65 #:use-module (gnu packages gnupg)
66 #:use-module (gnu packages gperf)
67 #:use-module (gnu packages gtk)
68 #:use-module (gnu packages guile)
69 #:use-module (gnu packages icu4c)
70 #:use-module (gnu packages image)
71 #:use-module (gnu packages less)
72 #:use-module (gnu packages libcanberra)
73 #:use-module (gnu packages libidn)
74 #:use-module (gnu packages linux)
75 #:use-module (gnu packages logging)
76 #:use-module (gnu packages lua)
77 #:use-module (gnu packages man)
78 #:use-module (gnu packages markup)
79 #:use-module (gnu packages ncurses)
80 #:use-module (gnu packages networking)
81 #:use-module (gnu packages pcre)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages photo)
84 #:use-module (gnu packages php)
85 #:use-module (gnu packages pkg-config)
86 #:use-module (gnu packages protobuf)
87 #:use-module (gnu packages python)
88 #:use-module (gnu packages python-crypto)
89 #:use-module (gnu packages python-web)
90 #:use-module (gnu packages python-xyz)
91 #:use-module (gnu packages qt)
92 #:use-module (gnu packages readline)
93 #:use-module (gnu packages sqlite)
94 #:use-module (gnu packages tcl)
95 #:use-module (gnu packages texinfo)
96 #:use-module (gnu packages textutils)
97 #:use-module (gnu packages tls)
98 #:use-module (gnu packages video)
99 #:use-module (gnu packages web)
100 #:use-module (gnu packages xdisorg)
101 #:use-module (gnu packages xiph)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages xorg)
104 #:use-module (guix build-system cmake)
105 #:use-module (guix build-system glib-or-gtk)
106 #:use-module (guix build-system gnu)
107 #:use-module (guix build-system meson)
108 #:use-module (guix build-system perl)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system qt)
111 #:use-module (guix build-system trivial)
112 #:use-module (guix download)
113 #:use-module (guix git-download)
114 #:use-module (guix hg-download)
115 #:use-module ((guix licenses) #:prefix license:)
116 #:use-module (guix packages)
117 #:use-module (guix utils))
119 (define-public libotr
125 (uri (string-append "https://otr.cypherpunks.ca/libotr-"
129 "1x8rliydhbibmzwdbyr7pd7n87m2jmxnqkpvaalnf4154hj1hfwb"))
130 (patches (search-patches "libotr-test-auth-fix.patch"))))
131 (build-system gnu-build-system)
133 `(("libgcrypt" ,libgcrypt))) ; libotr headers include gcrypt.h
134 (inputs `(("libgpg-error" ,libgpg-error)))
135 (native-inputs `(("perl" ,perl))) ; for the test suite
136 (synopsis "Off-the-Record (OTR) Messaging Library and Toolkit")
138 "OTR allows you to have private conversations over instant messaging by
139 providing: (1) Encryption: No one else can read your instant messages. (2)
140 Authentication: You are assured the correspondent is who you think it is. (3)
141 Deniability: The messages you send do not have digital signatures that are
142 checkable by a third party. Anyone can forge messages after a conversation to
143 make them look like they came from you. However, during a conversation, your
144 correspondent is assured the messages he sees are authentic and
145 unmodified. (4) Perfect forward secrecy: If you lose control of your private
146 keys, no previous conversation is compromised.")
147 (home-page "https://otr.cypherpunks.ca/")
148 (license (list license:lgpl2.1 license:gpl2))))
150 (define-public libsignal-protocol-c
152 (name "libsignal-protocol-c")
156 (uri (string-append "https://github.com/WhisperSystems/"
157 "libsignal-protocol-c/archive/v" version
159 (file-name (string-append name "-" version ".tar.gz"))
162 "0380hl6fw3ppf265fg897pyrpqygpx4m9j8ifq118bim8lq6z0pk"))))
164 `(;; Required for proper linking and for tests to run.
165 #:configure-flags '("-DBUILD_SHARED_LIBS=on" "-DBUILD_TESTING=1")))
166 (build-system cmake-build-system)
167 (inputs `( ;; Required for tests:
169 ("openssl" ,openssl)))
170 (native-inputs `(("pkg-config" ,pkg-config)))
171 (home-page "https://github.com/WhisperSystems/libsignal-protocol-c")
172 (synopsis "Implementation of a ratcheting forward secrecy protocol")
173 (description "libsignal-protocol-c is an implementation of a ratcheting
174 forward secrecy protocol that works in synchronous and asynchronous
175 messaging environments. It can be used with messaging software to provide
176 end-to-end encryption.")
177 (license license:gpl3+)))
179 (define-public bitlbee
185 (uri (string-append "https://get.bitlbee.org/src/bitlbee-"
188 (base32 "0zhhcbcr59sx9h4maf8zamzv2waya7sbsl7w74gbyilvy93dw5cz"))))
189 (build-system gnu-build-system)
190 (native-inputs `(("pkg-config" ,pkg-config)
191 ;; Note: Change to 'check' for versions > 3.6.
192 ("check" ,check-0.12)))
193 (inputs `(("glib" ,glib)
200 (modify-phases %standard-phases
201 (add-before 'configure 'set-python
202 (lambda _ (setenv "PYTHON" (which "python3")) #t))
203 (add-after 'install 'install-etc
204 (lambda* (#:key (make-flags '()) #:allow-other-keys)
205 (apply invoke "make" "install-etc" make-flags)))
206 (add-after 'install-etc 'install-lib
207 (lambda* (#:key (make-flags '()) #:allow-other-keys)
208 (apply invoke "make" "install-dev" make-flags)))
210 ;; bitlbee's configure script does not tolerate many of the
211 ;; variable settings that Guix would pass to it.
212 (lambda* (#:key outputs #:allow-other-keys)
213 (invoke "./configure"
214 (string-append "--prefix="
215 (assoc-ref outputs "out"))
217 (synopsis "IRC to instant messaging gateway")
218 (description "BitlBee brings IM (instant messaging) to IRC clients, for
219 people who have an IRC client running all the time and don't want to run an
220 additional IM client. BitlBee currently supports XMPP/Jabber (including
221 Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ, and the Twitter
222 microblogging network (plus all other Twitter API compatible services like
223 identi.ca and status.net).")
224 (home-page "https://www.bitlbee.org/")
225 (license (list license:gpl2+ license:bsd-2))))
227 (define-public bitlbee-discord
229 (name "bitlbee-discord")
235 (url "https://github.com/sm00th/bitlbee-discord.git")
237 (file-name (git-file-name name version))
239 (base32 "02pigk2vbz0jdz11f96sygdvp1j762yjn62h124fkcsc070g7a2f"))))
240 (build-system gnu-build-system)
243 (modify-phases %standard-phases
244 (add-after 'unpack 'patch-autogen
246 (let ((sh (which "sh")))
247 (substitute* "autogen.sh" (("/bin/sh") sh))
248 (setenv "CONFIG_SHELL" sh))
251 (lambda* (#:key inputs outputs #:allow-other-keys)
252 (invoke "./configure"
253 (string-append "--with-plugindir="
254 (assoc-ref outputs "out")
255 "/lib/bitlbee/")))))))
256 (inputs `(("glib" ,glib)))
257 (native-inputs `(("pkg-config" ,pkg-config)
258 ("autoconf" ,autoconf)
259 ("automake" ,automake)
262 ("bitlbee" ,bitlbee) ; needs bitlbee headers
264 (synopsis "Discord plugin for Bitlbee")
265 (description "Bitlbee-discord is a plugin for Bitlbee witch provides
266 access to servers running the Discord protocol.")
267 (home-page "https://github.com/sm00th/bitlbee-discord/")
268 (license license:gpl2+)))
270 (define-public purple-mattermost
272 (name "purple-mattermost")
274 (home-page "https://github.com/EionRobb/purple-mattermost")
277 (uri (git-reference (url home-page)
278 (commit (string-append "v" version))))
279 (file-name (git-file-name name version))
282 "0fm49iv58l09qpy8vkca3am642fxiwcrrh6ykimyc2mas210b5g2"))))
283 (build-system gnu-build-system)
285 `(#:phases (modify-phases %standard-phases
287 (lambda* (#:key inputs outputs #:allow-other-keys)
288 ;; Adjust the makefile to install files in the right
290 (let ((out (assoc-ref outputs "out")))
291 (substitute* "Makefile"
292 (("MATTERMOST_DEST = .*")
293 (string-append "MATTERMOST_DEST = " out
294 "/lib/purple-2\n")) ;XXX: hardcoded
295 (("MATTERMOST_ICONS_DEST = .*")
296 (string-append "MATTERMOST_ICONS_DEST = "
298 "/share/pixmaps/pidgin/protocols\n")))
300 #:make-flags (list "CC=gcc"
301 ,(string-append "PLUGIN_VERSION=" version))
303 (inputs `(("glib" ,glib)
304 ("json-glib" ,json-glib)
305 ("discount" ,discount)
307 (native-inputs `(("pkg-config" ,pkg-config)))
308 (synopsis "Purple plug-in to access Mattermost instant messaging")
310 "Purple-Mattermost is a plug-in for Purple, the instant messaging library
311 used by Pidgin and Bitlbee, among others, to access
312 @uref{https://mattermost.com/, Mattermost} servers.")
313 (license license:gpl3+)))
315 (define-public hexchat
321 (uri (string-append "https://dl.hexchat.net/hexchat/hexchat-"
325 "10p829jm1r6kidkgf5lhqhyqc5mxdcq96q3zhadsckasvc9rs6lh"))))
326 (build-system meson-build-system)
327 (native-inputs `(("gettext" ,gettext-minimal)
328 ("glib:bin" ,glib "bin") ;need glib-genmarshal
330 ("pkg-config" ,pkg-config)))
331 (inputs `(("dbus-glib" ,dbus-glib)
335 ("libcanberra" ,libcanberra)
336 ("libnotify" ,libnotify)
337 ("libproxy" ,libproxy)
340 ;; Bindings for add-on scripts.
342 ("perl-xml-parser" ,perl-xml-parser)
343 ("python-2" ,python-2)))
346 (modify-phases %standard-phases
347 (add-after 'unpack 'skip-desktop-database-updates
349 ;; The build scripts update icon and desktop file databases when
350 ;; DESTDIR is not set. We can't update these databases from
351 ;; within the build chroot, but we also don't set DESTDIR. So, we
352 ;; just skip this code.
353 (substitute* "meson_post_install.py"
354 (("if 'DESTDIR' not in os.environ:")
357 (synopsis "Graphical IRC client")
359 "HexChat lets you connect to multiple IRC networks at once. The main
360 window shows the list of currently connected networks and their channels, the
361 current conversation and the list of users. It uses colors to differentiate
362 between users and to highlight messages. It checks spelling using available
363 dictionaries. HexChat can be extended with multiple addons.")
364 (home-page "https://hexchat.net/")
365 (license license:gpl2+)))
367 (define-public ngircd
373 (uri (string-append "https://arthur.barton.de/pub/ngircd/ngircd-"
377 "0kpf5qi98m9f833r4rx9n6h9p31biwk798jwc1mgzmix7sp7r6f4"))
378 (patches (search-patches "ngircd-handle-zombies.patch"))))
379 (build-system gnu-build-system)
380 ;; Needed for the test suite.
381 (native-inputs `(("procps" ,procps)
383 ("inetutils" ,inetutils)))
385 (inputs `(("zlib" ,zlib)
386 ("libwrap" ,tcp-wrappers)
388 ,@(if (string-suffix? "-linux"
389 (or (%current-target-system)
391 `(("linux-pam" ,linux-pam))
395 '("--with-gnutls" "--with-iconv" "--enable-ipv6" "--with-tcp-wrappers"
396 ,@(if (string-suffix? "-linux"
397 (or (%current-target-system)
402 (modify-phases %standard-phases
403 ;; Necessary for the test suite.
404 (add-after 'configure 'post-configure
406 (substitute* "src/ngircd/Makefile"
407 (("/bin/sh") (which "sh")))
408 ;; The default getpid.sh does a sloppy grep over 'ps -ax' output,
409 ;; which fails arbitrarily.
410 (with-output-to-file "src/testsuite/getpid.sh"
414 "#!" (which "sh") "\n"
415 "ps -C \"$1\" -o pid=\n"))))
416 ;; Our variant of getpid.sh does not match interpreter names
417 ;; when the script's shebang is invoked directly as "./foo".
418 ;; Patch cases where the test suite relies on this.
419 (substitute* "src/testsuite/start-server.sh"
420 ;; It runs 'getpid.sh sh' to test if it works at all. Run it on
422 (("getpid.sh sh") "getpid.sh make")))))))
423 (home-page "https://ngircd.barton.de/")
424 (synopsis "Lightweight Internet Relay Chat server for small networks")
426 "ngIRCd is a lightweight @dfn{Internet Relay Chat} (IRC) server for small
427 or private networks. It is easy to configure, can cope with dynamic IP
428 addresses, and supports IPv6, SSL-protected connections, as well as PAM for
430 (license license:gpl2+)))
432 (define-public pidgin
439 (uri (string-append "mirror://sourceforge/pidgin/Pidgin/"
440 version "/pidgin-" version ".tar.bz2"))
442 (base32 "13vdqj70315p9rzgnbxjp9c51mdzf1l4jg1kvnylc4bidw61air7"))
443 (patches (search-patches "pidgin-add-search-path.patch"))))
444 (build-system glib-or-gtk-build-system)
446 `(("pkg-config" ,pkg-config)
448 ("intltool" ,intltool)
451 ("doxygen" ,doxygen)))
454 ("libgcrypt" ,libgcrypt)
456 ("cyrus-sasl" ,cyrus-sasl)
458 ("dbus-glib" ,dbus-glib)
459 ("python2-dbus" ,python2-dbus)
463 ;; TODO: gstreamer: patches needed to support gstreamer-1.0 or later
472 ("network-manager" ,network-manager)
476 ("libxscrnsaver" ,libxscrnsaver)
477 ("startup-notification" ,startup-notification)))
480 (list "--disable-gtkspell"
482 "--disable-meanwhile"
483 "--disable-vv" ; XXX remove when we have farstream and gstreamer
484 "--disable-gstreamer" ; XXX patches needed to support gstreamer-1.0
485 "--enable-cyrus-sasl"
486 (string-append "--with-ncurses-headers="
487 (assoc-ref %build-inputs "ncurses")
490 (list (search-path-specification
491 (variable "PURPLE_PLUGIN_PATH")
492 (files (list (string-append "lib/purple-"
493 (version-major version))
495 (home-page "https://www.pidgin.im/")
496 (synopsis "Graphical multi-protocol instant messaging client")
498 "Pidgin is a modular instant messaging client that supports many popular
502 license:gpl2+ ; Most of the code
503 license:lgpl2.1 ; GG protocol plugin (libpurple/protocols/gg/lib)
504 license:lgpl2.0+ ; OSCAR protocol plugin (libpurple/protocols/oscar)
505 ;; The following licenses cover the zephyr protocol plugin:
506 (license:non-copyleft
507 "file://libpurple/protocols/zephyr/mit-copyright.h"
508 "See libpurple/protocols/zephyr/mit-copyright.h in the distribution.")
509 (license:non-copyleft
510 "file://libpurple/protocols/zephyr/mit-sipb-copyright.h"
511 "See libpurple/protocols/zephyr/mit-sipb-copyright.h in the distribution.")))))
513 (define-public pidgin-otr
519 (uri (string-append "https://otr.cypherpunks.ca/"
520 name "-" version ".tar.gz"))
523 "1i5s9rrgbyss9rszq6c6y53hwqyw1k86s40cpsfx5ccl9bprxdgl"))))
524 (build-system gnu-build-system)
526 `(("pkg-config" ,pkg-config)
527 ("intltool" ,intltool)))
531 ("libgpg-error" ,libgpg-error)
532 ("libgcrypt" ,libgcrypt)
535 (home-page "https://otr.cypherpunks.ca/")
536 (synopsis "Off-the-Record Messaging plugin for Pidgin")
538 "Pidgin-OTR is a plugin that adds support for OTR to the Pidgin instant
539 messaging client. OTR (Off-the-Record) Messaging allows you to have private
540 conversations over instant messaging by providing: (1) Encryption: No one else
541 can read your instant messages. (2) Authentication: You are assured the
542 correspondent is who you think it is. (3) Deniability: The messages you send
543 do not have digital signatures that are checkable by a third party. Anyone
544 can forge messages after a conversation to make them look like they came from
545 you. However, during a conversation, your correspondent is assured the
546 messages he sees are authentic and unmodified. (4) Perfect forward secrecy:
547 If you lose control of your private keys, no previous conversation is
549 (license license:gpl2)))
557 (uri (string-append "http://znc.in/releases/archive/znc-"
561 "0m5xf60r40pgbg9lyk56dafxj2hj149pn2wf8vzsp8xgq4kv5zcl"))))
562 (build-system cmake-build-system)
565 (list "-DWANT_CYRUS=ON"
570 (modify-phases %standard-phases
571 (add-after 'unpack 'unpack-googletest
572 ;; Copy the googletest sources to where the CMake build expects them.
573 (lambda* (#:key inputs #:allow-other-keys)
574 (let ((source (assoc-ref inputs "googletest-source"))
575 (target "third_party/googletest"))
577 (copy-recursively source target)
581 ("gettext" ,gettext-minimal)
582 ("googletest-source" ,(package-source googletest))
583 ("pkg-config" ,pkg-config)))
585 `(("cyrus-sasl" ,cyrus-sasl)
591 (home-page "https://znc.in")
592 (synopsis "IRC network bouncer")
593 (description "ZNC is an @dfn{IRC network bouncer} or @dfn{BNC}. It can
594 detach the client from the actual IRC server, and also from selected channels.
595 Multiple clients from different locations can connect to a single ZNC account
596 simultaneously and therefore appear under the same nickname on IRC.")
597 (license license:asl2.0)))
599 (define-public python-nbxmpp
601 (name "python-nbxmpp")
606 (uri (pypi-uri "nbxmpp" version))
609 "1vq89nhamciblyi5579bppnm4sb0zk5cg5hdipfpz174fxvl2wyd"))))
610 (build-system python-build-system)
612 `(#:tests? #f)) ; no tests
613 (home-page "https://dev.gajim.org/gajim/python-nbxmpp")
614 (synopsis "Non-blocking Jabber/XMPP module")
616 "The goal of this python library is to provide a way for Python
617 applications to use Jabber/XMPP networks in a non-blocking way. This library
618 was initially a fork of xmpppy, but uses non-blocking sockets.")
619 (license license:gpl3+)))
621 (define-public python2-nbxmpp
622 (package-with-python2 python-nbxmpp))
630 (uri (string-append "https://gajim.org/downloads/"
631 (version-major+minor version)
632 "/gajim-" version ".tar.bz2"))
635 "0bzxwcpdd4ydh6d6mzpr0gxwhcb0x9ympk55fpvm1hcw9d28a716"))))
636 (build-system python-build-system)
639 (modify-phases %standard-phases
640 (add-after 'unpack 'add-plugin-dirs
642 (substitute* "gajim/common/configpaths.py"
643 (("_paths\\['PLUGINS_USER'\\]\\]")
644 "_paths['PLUGINS_USER']] + \
645 ([os.getenv('GAJIM_PLUGIN_PATH')] \
646 if os.getenv('GAJIM_PLUGIN_PATH') \
647 and Path(os.getenv('GAJIM_PLUGIN_PATH')).is_dir() \
652 (invoke "python" "./setup.py" "test" "-s" "test.no_gui")))
653 (add-after 'install 'wrap-gi-typelib-path
654 (lambda* (#:key outputs #:allow-other-keys)
655 (let ((out (assoc-ref outputs "out")))
658 (let ((file (string-append out "/bin/" name))
659 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
661 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
663 `("XDG_DATA_DIRS" ":" prefix
664 (,(string-append (assoc-ref outputs "out") "/share"))))))
665 '("gajim" "gajim-remote" "gajim-history-manager")))
667 (add-after 'install 'install-icons
668 (lambda* (#:key inputs outputs #:allow-other-keys)
669 (let* ((out (assoc-ref outputs "out"))
670 (adwaita (string-append
671 (assoc-ref inputs "adwaita-icon-theme")
672 "/share/icons/Adwaita"))
673 (hicolor (string-append
674 (assoc-ref inputs "hicolor-icon-theme")
675 "/share/icons/hicolor"))
676 (icons (string-append
678 ,(version-major+minor (package-version python))
679 "/site-packages/gajim/data/icons")))
680 (with-directory-excursion icons
681 (symlink adwaita "Adwaita")
682 (copy-recursively hicolor "hicolor")))
684 (add-after 'install-icons 'wrap-gsettings-schema-dir
685 (lambda* (#:key inputs outputs #:allow-other-keys)
686 (wrap-program (string-append (assoc-ref outputs "out")
688 ;; For GtkFileChooserDialog.
689 `("GSETTINGS_SCHEMA_DIR" =
690 (,(string-append (assoc-ref inputs "gtk+")
691 "/share/glib-2.0/schemas"))))
694 (list (search-path-specification
695 (variable "GAJIM_PLUGIN_PATH")
696 (separator #f) ;single entry
697 (files '("share/gajim/plugins")))
698 ;; Gajim needs to use the propagated inputs of its plugins.
699 (search-path-specification
700 (variable "PYTHONPATH")
701 (files (list (string-append
704 ;; FIXME: Cannot use this expression as it would
705 ;; introduce a circular dependency at the top level.
706 ;; (version-major+minor (package-version python))
709 "/site-packages"))))))
711 `(("intltool" ,intltool)
712 ("python-docutils" ,python-docutils)
713 ("xorg-server" ,xorg-server-for-tests)))
715 `(("adwaita-icon-theme" ,adwaita-icon-theme)
716 ("gnome-keyring" ,gnome-keyring)
718 ("gtkspell3" ,gtkspell3)
719 ("hicolor-icon-theme" ,hicolor-icon-theme)
720 ("libsecret" ,libsecret)
721 ("python-cssutils" ,python-cssutils)
722 ("python-dbus" ,python-dbus)
723 ("python-gnupg" ,python-gnupg)
724 ("python-keyring" ,python-keyring)
725 ("python-nbxmpp" ,python-nbxmpp)
726 ("python-pillow" ,python-pillow)
727 ("python-precis-i18n" ,python-precis-i18n)
728 ("python-pycairo" ,python-pycairo)
729 ("python-pygobject" ,python-pygobject)
730 ("python-pyopenssl" ,python-pyopenssl)
731 ("python-qrcode" ,python-qrcode)))
732 (home-page "https://gajim.org/")
733 (synopsis "Jabber (XMPP) client")
734 (description "Gajim is a feature-rich and easy to use Jabber/XMPP client.
735 Among its features are: a tabbed chat window and single window modes; support
736 for group chat (with Multi-User Chat protocol), invitation, chat to group chat
737 transformation; audio and video conferences; file transfer; TLS, GPG and
738 end-to-end encryption support; XML console.")
739 (license license:gpl3)))
741 (define-public gajim-omemo
746 (method url-fetch/zipbomb)
748 "https://ftp.gajim.org/plugins_releases/omemo_"
752 "1mif5qkrvxclqbqmq6njini4laznbs5nn82w2f1hkl8c1284dvgi"))))
753 (build-system trivial-build-system)
755 `(#:modules ((guix build utils))
758 (use-modules (guix build utils))
759 (let* ((out (assoc-ref %outputs "out"))
760 (share (in-vicinity out "share/gajim/plugins"))
761 (source (assoc-ref %build-inputs "source")))
763 (copy-recursively source share)
766 `(("python-axolotl" ,python-axolotl)))
768 "https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin")
769 (synopsis "Gajim OMEMO plugin")
771 "This package provides the Gajim OMEMO plugin. OMEMO is an XMPP
772 Extension Protocol (XEP) for secure multi-client end-to-end encryption based
773 on Axolotl and PEP.")
774 (license license:gpl3+)))
783 (uri (string-append "https://github.com/dino/dino/releases/download/v"
784 version "/dino-" version ".tar.gz"))
787 "0dcq2jhpywgxrp9x1qqmrl2z50hazspqj547b9zz70apy3y4418h"))))
788 (build-system cmake-build-system)
791 #:parallel-build? #f ; not supported
792 #:modules ((guix build cmake-build-system)
793 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
795 #:imported-modules (,@%gnu-build-system-modules
796 (guix build cmake-build-system)
797 (guix build glib-or-gtk-build-system))
799 (modify-phases %standard-phases
800 (add-after 'install 'glib-or-gtk-wrap
801 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
804 ("libsignal-protocol-c" ,libsignal-protocol-c)
805 ("libgcrypt" ,libgcrypt)
807 ("qrencode" ,qrencode)
811 ("glib-networking" ,glib-networking)
812 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
814 `(("pkg-config" ,pkg-config)
817 ("gettext" ,gettext-minimal)))
818 (home-page "https://dino.im")
819 (synopsis "Graphical Jabber (XMPP) client")
820 (description "Dino is a Jabber (XMPP) client which aims to fit well into
821 a graphical desktop environment like GNOME.")
822 (license license:gpl3+)))
824 (define-public prosody
830 (uri (string-append "https://prosody.im/downloads/source/"
831 "prosody-" version ".tar.gz"))
834 "11xz4milv2962qf75vrdwsvd8sy2332nf69202rmvz5989pvvnng"))))
835 (build-system gnu-build-system)
837 `(#:tests? #f ;tests require "busted"
838 #:configure-flags (list "--no-example-certs")
839 #:modules ((ice-9 match)
841 (guix build gnu-build-system)
844 (modify-phases %standard-phases
845 (add-after 'unpack 'fix-configure-script
847 ;; The configure script aborts when it encounters unexpected
848 ;; arguments. Make it more tolerant.
849 (substitute* "configure"
852 (add-after 'unpack 'fix-makefile
854 (substitute* "GNUmakefile"
855 ;; prosodyctl needs to read the configuration file.
856 (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n")
857 ;; prosodyctl needs a place to put auto-generated certificates.
858 (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n"))
860 (add-after 'install 'wrap-programs
861 (lambda* (#:key inputs outputs #:allow-other-keys)
862 ;; Make sure all executables in "bin" find the required Lua
863 ;; modules at runtime.
864 (let* ((out (assoc-ref outputs "out"))
865 (bin (string-append out "/bin/"))
866 (deps (delete #f (map (match-lambda
868 (if (string-prefix? "lua" label)
871 (lua-path (string-join
874 path "/share/lua/5.2/?.lua;"
875 path "/share/lua/5.2/?/?.lua"))
878 (lua-cpath (string-join
881 path "/lib/lua/5.2/?.so;"
882 path "/lib/lua/5.2/?/?.so"))
885 (openssl (assoc-ref inputs "openssl"))
886 (coreutils (assoc-ref inputs "coreutils"))
887 (path (map (lambda (dir)
888 (string-append dir "/bin"))
889 (list openssl coreutils))))
890 (for-each (lambda (file)
892 `("LUA_PATH" ";" = (,lua-path))
893 `("LUA_CPATH" ";" = (,lua-cpath))
894 `("PATH" ":" prefix ,path)))
895 (find-files bin ".*"))
901 ("lua5.2-bitop" ,lua5.2-bitop)
902 ("lua5.2-expat" ,lua5.2-expat)
903 ("lua5.2-socket" ,lua5.2-socket)
904 ("lua5.2-filesystem" ,lua5.2-filesystem)
905 ("lua5.2-sec" ,lua5.2-sec)))
906 (home-page "https://prosody.im/")
907 (synopsis "Jabber (XMPP) server")
908 (description "Prosody is a modern XMPP communication server. It aims to
909 be easy to set up and configure, and efficient with system resources.
910 Additionally, for developers it aims to be easy to extend and give a flexible
911 system on which to rapidly develop added functionality, or prototype new
913 (license license:x11)))
915 (define-public prosody-http-upload
916 (let ((changeset "765735bb590b")
919 (name "prosody-http-upload")
920 (version (string-append "0-" revision "." (string-take changeset 7)))
924 (url "https://hg.prosody.im/prosody-modules/")
925 (changeset changeset)))
926 (file-name (string-append name "-" version "-checkout"))
929 "142wrcism70nf8ffahhd961cqg2pi1h7ic8adfs3zwh0j3pnf41f"))))
930 (build-system trivial-build-system)
932 '(#:modules ((guix build utils))
935 (use-modules (guix build utils))
936 (let ((out (assoc-ref %outputs "out"))
937 (source (assoc-ref %build-inputs "source")))
938 (with-directory-excursion (in-vicinity source "mod_http_upload")
939 (install-file "mod_http_upload.lua" out))
941 (home-page "https://modules.prosody.im/mod_http_upload.html")
942 (synopsis "XEP-0363: Allow clients to upload files over HTTP")
943 (description "This module implements XEP-0363: it allows clients to
944 upload files over HTTP.")
945 (license (package-license prosody)))))
947 (define-public prosody-smacks
948 (let ((changeset "67f1d1f22625")
951 (name "prosody-smacks")
952 (version (string-append "0-" revision "." (string-take changeset 7)))
956 (url "https://hg.prosody.im/prosody-modules/")
957 (changeset changeset)))
958 (file-name (string-append name "-" version "-checkout"))
961 "020ngpax30fgarah98yvlj0ni8rcdwq60if03a9hqdw8mic0nxxs"))))
962 (build-system trivial-build-system)
964 '(#:modules ((guix build utils))
967 (use-modules (guix build utils))
968 (let ((out (assoc-ref %outputs "out"))
969 (source (assoc-ref %build-inputs "source")))
970 (with-directory-excursion (in-vicinity source "mod_smacks")
971 (install-file "mod_smacks.lua" out))
973 (home-page "https://modules.prosody.im/mod_smacks.html")
974 (synopsis "XEP-0198: Reliability and fast reconnects for XMPP")
975 (description "This module implements XEP-0198: when supported by both
976 the client and server, it can allow clients to resume a disconnected session,
977 and prevent message loss.")
978 (license (package-license prosody)))))
980 (define-public libtoxcore
982 (commit "bf69b54f64003d160d759068f4816b2d9b2e1e21"))
985 (version (string-append "0.0.0" "-"
986 revision "."(string-take commit 7)))
990 (url "https://github.com/irungentoo/toxcore.git")
992 (file-name (string-append name "-" version "-checkout"))
995 "11lqra4yd7v293cp286ynff5lqz1pprzg8vn3wq6vryj08g88zqb"))))
996 (build-system gnu-build-system)
997 (arguments `(#:tests? #f)) ; FIXME: tests hang, some fail.
999 `(("autoconf" ,autoconf)
1000 ("automake" ,automake)
1001 ("libtool" ,libtool)
1003 ("pkg-config" ,pkg-config)))
1005 `(("libsodium" ,libsodium)
1007 ("libvpx" ,libvpx)))
1008 (synopsis "Library for the Tox encrypted messenger protocol")
1010 "C library implementation of the Tox encrypted messenger protocol.")
1011 (license license:gpl3+)
1012 (home-page "https://tox.chat"))))
1014 ;; Some tox clients move to c-toxcore, which seems to be where all the
1015 ;; recent development happens. It is run by the same developers as toxcore,
1016 ;; forked into a group namespace.
1017 (define-public c-toxcore
1025 (url "https://github.com/TokTok/c-toxcore.git")
1026 (commit (string-append "v" version))))
1027 (file-name (git-file-name name version))
1030 "0aljr9hqybla6p61af6fdkv0x8gph7c2wacqqa9hq2z9w0p4fs5j"))))
1032 `(#:tests? #f)) ; FIXME: Testsuite seems to stay stuck on test 3. Disable
1034 (build-system cmake-build-system)
1036 `(("pkg-config" ,pkg-config)))
1038 `(("libsodium" ,libsodium)
1040 ("libvpx" ,libvpx)))
1041 (home-page "https://tox.chat")
1042 (synopsis "Library for the Tox encrypted messenger protocol")
1044 "Official fork of the C library implementation of the Tox encrypted
1045 messenger protocol.")
1046 (license license:gpl3+)))
1056 (url "https://github.com/uTox/uTox.git")
1057 (commit (string-append "v" version))
1058 (recursive? #t))) ;; Needed for 'minini' git submodule.
1059 (file-name (string-append name "-" version "-checkout"))
1062 "17kwqw24iqljp2icih9k6ikx12gzr8zzqr8y5h35bg8m5s8pasq5"))))
1063 (build-system cmake-build-system)
1065 `(#:configure-flags '("-DENABLE_TESTS=on")
1067 (modify-phases %standard-phases
1068 (add-before 'build 'patch-absolute-filename-libgtk-3
1069 (lambda* (#:key inputs outputs #:allow-other-keys)
1070 (substitute* "../source/src/xlib/gtk.c"
1072 (string-append (assoc-ref inputs "gtk+")
1073 "/lib/libgtk-3.so")))))
1074 (add-after 'install 'wrap-program
1075 (lambda* (#:key inputs outputs #:allow-other-keys)
1076 (wrap-program (string-append (assoc-ref outputs "out")
1078 ;; For GtkFileChooserDialog.
1079 `("GSETTINGS_SCHEMA_DIR" =
1080 (,(string-append (assoc-ref inputs "gtk+")
1081 "/share/glib-2.0/schemas")))))))))
1084 ("filteraudio" ,filteraudio)
1085 ("fontconfig" ,fontconfig)
1086 ("freetype" ,freetype)
1087 ("libsodium" ,libsodium)
1088 ("c-toxcore" ,c-toxcore)
1092 ("libxext" ,libxext)
1093 ("libxrender" ,libxrender)
1095 ("v4l-utils" ,v4l-utils)))
1098 ("pkg-config" ,pkg-config)))
1099 (synopsis "Lightweight Tox client")
1101 "Utox is a lightweight Tox client. Tox is a distributed and secure
1102 instant messenger with audio and video chat capabilities.")
1103 (home-page "http://utox.org/")
1104 (license license:gpl3)))
1112 (uri (string-append "https://github.com/qTox/qTox/archive/v"
1116 "10n3cgw9xaqin9la8wpd8v83bkjmimicgbyp5ninsdgsrgky4hmq"))
1117 (file-name (string-append name "-" version ".tar.gz"))))
1118 (build-system cmake-build-system)
1121 (modify-phases %standard-phases
1122 (add-after 'unpack 'fix-reproducibility-issues
1124 (substitute* "src/main.cpp"
1125 (("__DATE__") "\"\"")
1126 (("__TIME__") "\"\"")
1127 (("TIMESTAMP") "\"\""))
1129 ;; Ensure that icons are found at runtime.
1130 (add-after 'install 'wrap-executable
1131 (lambda* (#:key inputs outputs #:allow-other-keys)
1132 (let ((out (assoc-ref outputs "out")))
1133 (wrap-program (string-append out "/bin/qtox")
1134 `("QT_PLUGIN_PATH" prefix
1135 ,(list (string-append (assoc-ref inputs "qtsvg")
1136 "/lib/qt5/plugins/"))))))))))
1138 `(("ffmpeg" ,ffmpeg)
1139 ("filteraudio" ,filteraudio)
1142 ("libsodium" ,libsodium)
1143 ("c-toxcore" ,c-toxcore)
1145 ("libxscrnsaver" ,libxscrnsaver)
1147 ("libexif" ,libexif)
1150 ("qrencode" ,qrencode)
1153 ("sqlcipher" ,sqlcipher)))
1155 `(("pkg-config" ,pkg-config)
1156 ("qmake" ,qttools)))
1157 (home-page "https://qtox.github.io/")
1158 (synopsis "Tox chat client using Qt")
1159 (description "qTox is a Tox client that follows the Tox design
1160 guidelines. It provides an easy to use application that allows you to
1161 connect with friends and family without anyone else listening in.")
1162 (license license:gpl3+)))
1164 (define-public pybitmessage
1166 (name "pybitmessage")
1172 (url "https://github.com/Bitmessage/PyBitmessage.git")
1174 (file-name (string-append name "-" version "-checkout"))
1177 "1lmhbpwsqh1v93krlqqhafw2pc3y0qp8zby186yllbph6s8kdp35"))))
1180 ;; Package "pyopencl", required in addition to numpy for OpenCL support.
1181 ;; Package "gst123", required in addition to alsa-utils and
1182 ;; mpg123 for sound support.
1183 `(("python2-msgpack" ,python2-msgpack)
1184 ("python2-pythondialog" ,python2-pythondialog)
1185 ("python2-pyqt-4" ,python2-pyqt-4)
1186 ("python2-sip" ,python2-sip)
1187 ("python2-pysqlite" ,python2-pysqlite)
1188 ("python2-pyopenssl" ,python2-pyopenssl)))
1190 `(("openssl" ,openssl)))
1191 (build-system python-build-system)
1193 `(#:modules ((guix build python-build-system)
1195 #:tests? #f ;no test target
1198 (modify-phases %standard-phases
1199 (add-after 'unpack 'fix-unmatched-python-shebangs
1200 (lambda* (#:key inputs #:allow-other-keys)
1201 (substitute* "src/bitmessagemain.py"
1202 (("#!/usr/bin/env python2.7")
1203 (string-append "#!" (which "python"))))
1204 (substitute* "src/bitmessagecli.py"
1205 (("#!/usr/bin/env python2.7.x")
1206 (string-append "#!" (which "python"))))
1208 (add-after 'unpack 'fix-depends
1209 (lambda* (#:key inputs #:allow-other-keys)
1210 (substitute* "src/depends.py"
1212 (string-append (assoc-ref inputs "openssl")
1213 "/lib/libcrypto.so")))
1215 (add-after 'unpack 'fix-local-files-in-paths
1216 (lambda* (#:key outputs #:allow-other-keys)
1217 (substitute* "src/proofofwork.py"
1219 (string-append (assoc-ref outputs "out")
1220 "/lib/bitmsghash.so")))
1222 (add-after 'unpack 'fix-pyelliptic
1223 (lambda* (#:key inputs #:allow-other-keys)
1224 (substitute* "src/pyelliptic/openssl.py"
1226 (string-append (assoc-ref inputs "openssl")
1227 "/lib/libcrypto.so"))
1229 (string-append (assoc-ref inputs "openssl")
1232 (add-after 'unpack 'noninteractive-build
1233 ;; This applies upstream commit 4c597d3f7cf9f83a763472aa165a1a4292019f20
1235 (substitute* "setup.py"
1236 (("except NameError")
1237 "except EOFError, NameError"))
1239 ;; XXX: python setup.py does not build and install bitmsghash,
1240 ;; without it PyBitmessage tries to compile it at first run
1241 ;; in the store, which due to obvious reasons fails. Do it
1242 ;; and place it in /lib.
1243 (add-after 'unpack 'build-and-install-bitmsghash
1244 (lambda* (#:key outputs #:allow-other-keys)
1245 (with-directory-excursion "src/bitmsghash"
1247 (install-file "bitmsghash.so"
1248 (string-append (assoc-ref outputs "out") "/lib")))
1250 (license license:expat)
1252 "Distributed and trustless peer-to-peer communications protocol
1253 for sending encrypted messages to one person or many subscribers.")
1254 (synopsis "Distributed peer-to-peer communication")
1255 (home-page "https://bitmessage.org/")))
1257 (define-public ytalk
1264 (uri (string-append "ftp://ftp.ourproject.org/pub/ytalk/ytalk-"
1268 "1d3jhnj8rgzxyxjwfa22vh45qwzjvxw1qh8fz6b7nfkj3zvk9jvf"))))
1269 (build-system gnu-build-system)
1271 `(("ncurses" ,ncurses)))
1272 (home-page "https://ytalk.ourproject.org")
1273 (synopsis "Multi-user chat program")
1274 (description "Ytalk is a replacement for the BSD talk program. Its main
1275 advantage is the ability to communicate with any arbitrary number of users at
1276 once. It supports both talk protocols (\"talk\" and \"ntalk\") and can communicate
1277 with several different talk daemons at the same time.")
1278 (license license:gpl2+)))
1280 (define-public gloox
1287 (uri (string-append "https://camaya.net/download/gloox-"
1288 version ".tar.bz2"))
1290 (base32 "12jz8glg9zmyk0iyv1ywf5i0hq93dfq8lvn6lyjgy8730w66mjwp"))))
1291 (build-system gnu-build-system)
1293 `(("libidn" ,libidn)
1297 `(("pkg-config" ,pkg-config)))
1298 (synopsis "Portable high-level Jabber/XMPP library for C++")
1300 "gloox is a full-featured Jabber/XMPP client library,
1301 written in ANSI C++. It makes writing spec-compliant clients easy
1302 and allows for hassle-free integration of Jabber/XMPP functionality
1303 into existing applications.")
1304 (home-page "https://camaya.net/gloox")
1305 (license license:gpl3)))
1307 (define-public perl-net-psyc
1309 (name "perl-net-psyc")
1314 (uri (string-append "https://perl.psyc.eu/"
1315 "perlpsyc-" version ".zip"))
1316 (file-name (string-append name "-" version ".zip"))
1319 "0vsjclglkwgbyd9m5ad642fyysxw2x725nhq4r2m9pvqaq6s5yf2"))))
1320 (build-system perl-build-system)
1322 `(("unzip" ,unzip)))
1324 `(("perl-curses" ,perl-curses)
1325 ("perl-io-socket-ssl" ,perl-io-socket-ssl)))
1328 (modify-phases %standard-phases
1329 (delete 'configure) ; No configure script
1330 ;; There is a Makefile, but it does not install everything
1331 ;; (leaves out psycion) and says
1332 ;; "# Just to give you a rough idea". XXX: Fix it upstream.
1334 (lambda _ (invoke "make" "manuals")))
1336 (lambda* (#:key outputs #:allow-other-keys)
1337 (let* ((out (assoc-ref outputs "out"))
1338 (doc (string-append out "/share/doc/perl-net-psyc"))
1339 (man1 (string-append out "/share/man/man1"))
1340 (man3 (string-append out "/share/man/man3"))
1341 (bin (string-append out "/bin"))
1342 (libpsyc (string-append out "/lib/psyc/ion"))
1343 (libperl (string-append out "/lib/perl5/site_perl/"
1344 ,(package-version perl))))
1346 (copy-recursively "lib/perl5" libperl)
1347 (copy-recursively "lib/psycion" libpsyc)
1348 (copy-recursively "bin" bin)
1349 (install-file "cgi/psycpager" (string-append doc "/cgi"))
1350 (copy-recursively "contrib" (string-append doc "/contrib"))
1351 (copy-recursively "hooks" (string-append doc "/hooks"))
1352 (copy-recursively "sdj" (string-append doc "/sdj"))
1353 (install-file "README.txt" doc)
1354 (install-file "TODO.txt" doc)
1355 (copy-recursively "share/man/man1" man1)
1356 (copy-recursively "share/man/man3" man3)
1358 (add-after 'install 'wrap-programs
1359 (lambda* (#:key outputs #:allow-other-keys)
1360 ;; Make sure all executables in "bin" find the Perl modules
1361 ;; provided by this package at runtime.
1362 (let* ((out (assoc-ref outputs "out"))
1363 (bin (string-append out "/bin/"))
1364 (path (getenv "PERL5LIB")))
1365 (for-each (lambda (file)
1367 `("PERL5LIB" ":" prefix (,path))))
1368 (find-files bin "\\.*$"))
1371 "@code{Net::PSYC} with support for TCP, UDP, Event.pm, @code{IO::Select} and
1372 Gtk2 event loops. This package includes 12 applications and additional scripts:
1373 psycion (a @uref{https://about.psyc.eu,PSYC} chat client), remotor (a control console
1374 for @uref{https://torproject.org,tor} router) and many more.")
1375 (synopsis "Perl implementation of PSYC protocol")
1376 (home-page "https://perl.psyc.eu")
1377 (license (list license:gpl2
1378 license:perl-license
1379 ;; contrib/irssi-psyc.pl:
1380 license:public-domain
1381 ;; bin/psycplay states AGPL with no version:
1384 (define-public libpsyc
1387 (version "20160913")
1390 (uri (string-append "http://www.psyced.org/files/"
1391 name "-" version ".tar.xz"))
1394 "14q89fxap05ajkfn20rnhc6b1h4i3i2adyr7y6hs5zqwb2lcmc1p"))))
1395 (build-system gnu-build-system)
1399 ("procps" ,procps)))
1403 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1405 (modify-phases %standard-phases
1406 ;; The rust bindings are the only ones in use, the lpc bindings
1407 ;; are in psyclpc. The other bindings are not used by anything,
1408 ;; the chances are high that the bindings do not even work,
1409 ;; therefore we do not include them.
1410 ;; TODO: Get a cargo build system in Guix.
1411 (delete 'configure)))) ; no configure script
1412 (home-page "https://about.psyc.eu/libpsyc")
1414 "@code{libpsyc} is a PSYC library in C which implements
1415 core aspects of PSYC, useful for all kinds of clients and servers
1417 (synopsis "PSYC library in C")
1418 (license license:agpl3+)))
1420 ;; This commit removes the historic bundled pcre and makes psyclpc reproducible.
1421 (define-public psyclpc
1422 (let* ((commit "61cf9aa81297085e5c40170fd01221c752f8deba")
1426 (version (string-append "20160821-" revision "." (string-take commit 7)))
1430 (url "git://git.psyced.org/git/psyclpc")
1432 (file-name (string-append name "-" version "-checkout"))
1435 "1viwqymbhn3cwvx0zl58rlzl5gw47zxn0ldg2nbi55ghm5zxl1z5"))))
1436 (build-system gnu-build-system)
1438 `(#:tests? #f ; There are no tests/checks.
1440 ;; If you have questions about this part, look at
1441 ;; "src/settings/psyced" and the ebuild.
1443 "--enable-use-tls=yes"
1444 "--enable-use-mccp" ; Mud Client Compression Protocol, leave this enabled.
1445 (string-append "--prefix="
1446 (assoc-ref %outputs "out"))
1447 ;; src/Makefile: Set MUD_LIB to the directory which contains
1448 ;; the mud data. defaults to MUD_LIB = @libdir@
1449 (string-append "--libdir="
1450 (assoc-ref %outputs "out")
1451 "/opt/psyced/world")
1452 (string-append "--bindir="
1453 (assoc-ref %outputs "out")
1455 ;; src/Makefile: Set ERQ_DIR to directory which contains the
1456 ;; stuff which ERQ can execute (hopefully) savely. Was formerly
1457 ;; defined in config.h. defaults to ERQ_DIR= @libexecdir@
1458 (string-append "--libexecdir="
1459 (assoc-ref %outputs "out")
1462 (modify-phases %standard-phases
1463 (add-before 'configure 'chdir-to-src
1464 ;; We need to pass this as env variables
1465 ;; and manually change the directory.
1468 (setenv "CONFIG_SHELL" (which "sh"))
1469 (setenv "SHELL" (which "sh"))
1471 #:make-flags (list "install-all")))
1474 ("openssl" ,openssl-1.0)
1477 `(("pkg-config" ,pkg-config)
1479 ("gettext" ,gettext-minimal)
1480 ("help2man" ,help2man)
1481 ("autoconf" ,autoconf)
1482 ("automake" ,automake)))
1483 (home-page "http://lpc.psyc.eu/")
1484 (synopsis "psycLPC is a multi-user network server programming language")
1486 "LPC is a bytecode language, invented to specifically implement
1487 multi user virtual environments on the internet. This technology is used for
1488 MUDs and also the psyced implementation of the Protocol for SYnchronous
1489 Conferencing (PSYC). psycLPC is a fork of LDMud with some new features and
1491 (license license:gpl2))))
1493 (define-public loudmouth
1500 (uri (string-append "https://mcabber.com/files/loudmouth/"
1501 name "-" version ".tar.bz2"))
1504 "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl"))))
1505 (build-system gnu-build-system)
1509 ("libidn" ,libidn)))
1511 `(("pkg-config" ,pkg-config)
1513 ("glib" ,glib "bin") ; gtester
1514 ("gtk-doc" ,gtk-doc)))
1515 (home-page "https://mcabber.com/")
1517 "Loudmouth is a lightweight and easy-to-use C library for programming
1518 with the XMPP (formerly known as Jabber) protocol. It is designed to be
1519 easy to get started with and yet extensible to let you do anything the XMPP
1521 (synopsis "Asynchronous XMPP library")
1522 ;; The files have LGPL2.0+ headers, but COPYING specifies LGPL2.1.
1523 (license license:lgpl2.0+)))
1525 (define-public mcabber
1532 (uri (string-append "https://mcabber.com/files/"
1533 name "-" version ".tar.bz2"))
1536 "1ggh865p1rf10ffsnf4g6qv9i8bls36dxdb1nzs5r9vdqci2rz04"))))
1537 (build-system gnu-build-system)
1539 '(#:configure-flags (list "--enable-otr"
1540 "--enable-aspell")))
1547 ("ncurses" ,ncurses)
1548 ("loudmouth" ,loudmouth)))
1550 `(("pkg-config" ,pkg-config)))
1551 (home-page "https://mcabber.com")
1553 "Mcabber is a small XMPP (Jabber) console client, which includes features
1554 such as SASL and TLS support, @dfn{Multi-User Chat} (MUC) support, logging,
1555 command-completion, OpenPGP encryption, @dfn{Off-the-Record Messaging} (OTR)
1556 support, and more.")
1557 (synopsis "Small XMPP console client")
1558 (license license:gpl2+)))
1560 (define-public freetalk
1566 (uri (string-append "mirror://gnu/freetalk/freetalk-"
1570 "1rmrn7a1bb7vm26yaklrvx008a9qhwc32s57dwrlf40lv9gffwny"))))
1571 (build-system gnu-build-system)
1574 (modify-phases %standard-phases
1575 ;; For 'system' commands in Scheme code.
1576 (add-after 'install 'wrap-program
1577 (lambda* (#:key inputs outputs #:allow-other-keys)
1578 (let* ((out (assoc-ref outputs "out"))
1579 (bash (assoc-ref inputs "bash"))
1580 (coreutils (assoc-ref inputs "coreutils"))
1581 (less (assoc-ref inputs "less")))
1582 (wrap-program (string-append out "/bin/freetalk")
1585 (string-append dir "/bin"))
1586 (list bash coreutils less))))
1589 `(("autoconf" ,autoconf)
1590 ("automake" ,automake)
1591 ("pkg-config" ,pkg-config)
1592 ("texinfo" ,texinfo)))
1596 ("guile" ,guile-2.0)
1598 ("loudmouth" ,loudmouth)
1599 ("readline" ,readline)))
1600 (synopsis "Extensible console-based Jabber client")
1602 "GNU Freetalk is a command-line Jabber/XMPP chat client. It notably uses
1603 the Readline library to handle input, so it features convenient navigation of
1604 text as well as tab-completion of buddy names, commands and English words. It
1605 is also scriptable and extensible via Guile.")
1606 (home-page "https://www.gnu.org/software/freetalk/")
1607 (license license:gpl3+)))
1609 (define-public libmesode
1616 (url "https://github.com/boothj5/libmesode.git")
1618 (file-name (git-file-name name version))
1621 "0xzfg1xx88cn36352nnjlb1p7xyw32yqkhjzq10px88iaaqz1vv0"))))
1622 (build-system gnu-build-system)
1625 ("openssl" ,openssl)))
1627 `(("autoconf" ,autoconf)
1628 ("automake" ,automake)
1629 ("libtool" ,libtool)
1630 ("pkg-config" ,pkg-config)))
1631 (synopsis "C library for writing XMPP clients")
1632 (description "Libmesode is a fork of libstrophe for use with Profanity
1633 XMPP Client. In particular, libmesode provides extra TLS functionality such as
1634 manual SSL certificate verification.")
1635 (home-page "https://github.com/boothj5/libmesode")
1637 (license (list license:gpl3+ license:x11))))
1639 (define-public libstrophe
1647 (url "https://github.com/strophe/libstrophe.git")
1649 (file-name (git-file-name name version))
1651 (base32 "1g1l0w9z9hdy5ncdvd9097gi7k7783did6py5h9camlpb2fnk5mk"))))
1652 (build-system gnu-build-system)
1655 ("openssl" ,openssl)))
1657 `(("autoconf" ,autoconf)
1658 ("automake" ,automake)
1659 ("libtool" ,libtool)
1660 ("pkg-config" ,pkg-config)))
1661 (synopsis "C library for writing XMPP clients")
1662 (description "Libstrophe is a minimal XMPP library written in C. It has
1663 almost no external dependencies, only an XML parsing library (expat or libxml
1664 are both supported).")
1665 (home-page "http://strophe.im/libstrophe")
1667 (license (list license:gpl3+ license:x11))))
1669 (define-public profanity
1675 (uri (string-append "https://profanity-im.github.io/profanity-"
1679 "15yrx2ir2bilxpjfaxpjb93yjpvpvcvh5r7wbsjx6kmmy7qg2zvb"))))
1680 (build-system gnu-build-system)
1683 (list "--enable-c-plugins"
1688 "--enable-notifications")))
1694 ("libmesode" ,libmesode)
1696 ("ncurses" ,ncurses)
1697 ("openssl" ,openssl)
1698 ("readline" ,readline)))
1700 `(("autoconf" ,autoconf)
1701 ("autoconf-archive" ,autoconf-archive)
1702 ("automake" ,automake)
1705 ("libnotify" ,libnotify)
1706 ("libtool" ,libtool)
1707 ("libsignal-protocol-c" ,libsignal-protocol-c)
1708 ("pkg-config" ,pkg-config)))
1709 (synopsis "Console-based XMPP client")
1710 (description "Profanity is a console based XMPP client written in C
1711 using ncurses and libmesode, inspired by Irssi.")
1712 (home-page "https://profanity-im.github.io")
1713 (license license:gpl3+)))
1715 (define-public libircclient
1717 (name "libircclient")
1722 (uri (string-append "mirror://sourceforge/libircclient/libircclient/"
1723 version "/libircclient-" version ".tar.gz"))
1726 "0b9wa0h3xc31wpqlvgxgnvqp5wgx3kwsf5s9432m5cj8ycx6zcmv"))))
1727 (build-system gnu-build-system)
1729 `(("openssl" ,openssl)))
1732 (list (string-append "--libdir="
1733 (assoc-ref %outputs "out") "/lib")
1737 #:tests? #f)) ; no test suite
1738 (home-page "https://www.ulduzsoft.com/libircclient/")
1739 (synopsis "Library implementing the client IRC protocol")
1740 (description "Libircclient is a library which implements the client IRC
1741 protocol. It is designed to be small, fast, portable and compatible with the
1742 RFC standards as well as non-standard but popular features. It can be used for
1743 building the IRC clients and bots.")
1744 (license license:lgpl3+)))
1746 (define-public toxic
1754 (url "https://github.com/JFreegman/toxic.git")
1755 (commit (string-append "v" version))))
1757 (base32 "09l2j3lwvrq7bf3051vjsnml9w63790ly3iylgf26gkrmld6k31w"))
1758 (file-name (git-file-name name version))))
1759 (build-system gnu-build-system)
1761 `(#:tests? #f ; no tests
1765 (string-append "PREFIX="
1766 (assoc-ref %outputs "out")))
1768 (modify-phases %standard-phases
1770 (add-before 'build 'enable-python-scripting
1772 ;; XXX: For compatibility with Python 3.8, adjust python3-config
1773 ;; invokation to include --embed; see
1774 ;; <https://github.com/JFreegman/toxic/issues/533>.
1775 (substitute* "cfg/checks/python.mk"
1776 (("python3-config --ldflags")
1777 "python3-config --ldflags --embed"))
1778 (setenv "ENABLE_PYTHON" "1")
1781 `(("c-toxcore" ,c-toxcore)
1783 ("freealut" ,freealut)
1784 ("gdk-pixbuf" ,gdk-pixbuf) ; for libnotify.pc
1785 ("libconfig" ,libconfig)
1786 ("libnotify" ,libnotify)
1790 ("ncurses" ,ncurses)
1793 ("qrencode" ,qrencode)))
1795 `(("pkg-config" ,pkg-config)))
1796 (home-page "https://github.com/JFreegman/toxic")
1797 (synopsis "Tox chat client using ncurses")
1798 (description "Toxic is a console-based instant messaging client, using
1799 c-toxcore and ncurses. It provides audio calls, sound and desktop
1800 notifications, and Python scripting support.")
1801 (license license:gpl3+)))
1803 (define-public libqmatrixclient
1805 (name "libqmatrixclient")
1811 (url "https://github.com/QMatrixClient/libqmatrixclient")
1813 (file-name (git-file-name name version))
1815 (base32 "1bhlqfs7251fss4icx794ka614npr6zyrpp4qwc4q5408ykfm7lr"))))
1816 (build-system cmake-build-system)
1818 `(("qtbase" ,qtbase)
1819 ("qtmultimedia" ,qtmultimedia)))
1821 `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON")
1822 #:tests? #f)) ; no tests
1823 (home-page "https://matrix.org/docs/projects/sdk/libqmatrixclient.html")
1824 (synopsis "Qt5 client library for the Matrix instant messaging protocol")
1825 (description "libqmatrixclient is a Qt5 library to write clients for the
1826 Matrix instant messaging protocol. Quaternion is the reference client
1827 implementation. Quaternion and libqmatrixclient together form the
1828 QMatrixClient project.")
1829 (license license:lgpl2.1+)))
1831 (define-public mtxclient
1839 (url "https://github.com/Nheko-Reborn/mtxclient.git")
1840 (commit (string-append "v" version))))
1841 (file-name (git-file-name name version))
1843 (base32 "0pycznrvj57ff6gbwfn1xj943d2dr4vadl79hii1z16gn0nzxpmj"))))
1847 ;; Disable example binaries (not installed)
1848 "-DBUILD_LIB_EXAMPLES=OFF")
1850 (modify-phases %standard-phases
1851 (add-before 'configure 'disable-network-tests
1853 (substitute* "CMakeLists.txt"
1854 (("add_test\\((BasicConnectivity|ClientAPI|MediaAPI|Encryption)")
1857 (add-before 'configure 'set-home
1859 ;; Tries to create package registry file
1861 (setenv "HOME" "/tmp")
1863 (build-system cmake-build-system)
1866 ("json-modern-cxx" ,json-modern-cxx)
1868 ("libsodium" ,libsodium)
1869 ("openssl" ,openssl)
1873 `(("googletest" ,googletest)
1874 ("pkg-config" ,pkg-config)))
1875 (home-page "https://github.com/Nheko-Reborn/mtxclient")
1876 (synopsis "Client API library for the Matrix protocol")
1877 (description "@code{mtxclient} is a C++ library that implements client API
1878 for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
1879 (license license:expat)))
1881 (define-public nheko
1889 (url "https://github.com/Nheko-Reborn/nheko.git")
1890 (commit (string-append "v" version))))
1891 (file-name (git-file-name name version))
1893 (base32 "19dkc98l1q4070v6mli4ybqn0ip0za607w39hjf0x8rqdxq45iwm"))))
1895 `(#:tests? #f ;no test target
1898 "-DCMAKE_BUILD_TYPE=Release"
1899 "-DCMAKE_CXX_FLAGS=-fpermissive")
1901 (modify-phases %standard-phases
1902 (add-after 'unpack 'remove-Werror
1904 (substitute* "CMakeLists.txt"
1907 (add-after 'unpack 'fix-determinism
1909 ;; Make Qt deterministic.
1910 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
1912 (build-system qt-build-system)
1916 ("json-modern-cxx" ,json-modern-cxx)
1920 ("mtxclient" ,mtxclient)
1921 ("openssl" ,openssl)
1924 ("qtmultimedia" ,qtmultimedia)
1929 `(("pkg-config" ,pkg-config)
1930 ("qtlinguist" ,qttools)))
1931 (home-page "https://github.com/Nheko-Reborn/nheko")
1932 (synopsis "Desktop client for Matrix using Qt and C++14")
1933 (description "@code{Nheko} want to provide a native desktop app for the
1934 Matrix protocol that feels more like a mainstream chat app and less like an IRC
1937 There is support for:
1939 @item E2E encryption (text messages only: attachments are currently sent unencrypted).
1940 @item User registration.
1941 @item Creating, joining & leaving rooms.
1942 @item Sending & receiving invites.
1943 @item Sending & receiving files and emoji.
1944 @item Typing notifications.
1945 @item Username auto-completion.
1946 @item Message & mention notifications.
1947 @item Redacting messages.
1948 @item Read receipts.
1949 @item Basic communities support.
1950 @item Room switcher (@key{ctrl-K}).
1951 @item Light, Dark & System themes.
1953 (license license:gpl3+)))
1955 (define-public quaternion
1958 (version "0.0.9.4c")
1963 (url "https://github.com/QMatrixClient/Quaternion")
1965 (file-name (git-file-name name version))
1967 (base32 "0gpv6b3nn3lsyym8809kiqkpdszfasldqjpk5s542zyn41gdlql4"))))
1968 (build-system qt-build-system)
1970 `(("libqmatrixclient" ,libqmatrixclient)
1972 ("qtdeclarative" ,qtdeclarative)
1973 ("qtmultimedia" ,qtmultimedia)
1974 ("qtquickcontrols" ,qtquickcontrols)
1975 ("qtquickcontrols2" ,qtquickcontrols2)
1977 ("qttools" ,qttools)))
1979 `(#:tests? #f)) ; no tests
1980 (home-page "https://matrix.org/docs/projects/client/quaternion.html")
1981 (synopsis "Graphical client for the Matrix instant messaging protocol")
1982 (description "Quaternion is a Qt5 desktop client for the Matrix instant
1983 messaging protocol. It uses libqmatrixclient and is its reference client
1984 implementation. Quaternion and libqmatrixclient together form the
1985 QMatrixClient project.")
1986 (license (list license:gpl3+ ; all source code
1987 license:lgpl3+)))) ; icons/breeze
1989 (define-public hangups
1996 (uri (pypi-uri "hangups" version))
1998 (base32 "0ww9z9kcb02pwnr8q1ll31wkzspc1fci1ly8ifrwzxysp4rxy3j5"))))
1999 (build-system python-build-system)
2002 (modify-phases %standard-phases
2003 (add-before 'build 'relax-dependencies
2004 ;; Relax overly strict package version specifications.
2006 (substitute* "setup.py"
2010 `(("python-aiohttp" ,python-aiohttp)
2011 ("python-appdirs" ,python-appdirs)
2012 ("python-async-timeout" ,python-async-timeout)
2013 ("python-configargparse" ,python-configargparse)
2014 ("python-mechanicalsoup" ,python-mechanicalsoup)
2015 ("python-protobuf" ,python-protobuf-3.6)
2016 ("python-readlike" ,python-readlike)
2017 ("python-reparser" ,python-reparser)
2018 ("python-requests" ,python-requests)
2019 ("python-urwid" ,python-urwid)))
2021 `(("python-httpretty" ,python-httpretty)
2022 ("python-pytest" ,python-pytest)))
2023 (home-page "https://hangups.readthedocs.io/")
2024 (synopsis "Instant messaging client for Google Hangouts")
2026 "Hangups is an instant messaging client for Google Hangouts. It includes
2027 both a Python library and a reference client with a text-based user interface.
2029 Hangups is implements a reverse-engineered version of Hangouts' proprietary,
2030 non-interoperable protocol, which allows it to support features like group
2031 messaging that aren’t available to clients that connect over XMPP.")
2032 (license license:expat)))
2034 (define-public telegram-purple
2036 (name "telegram-purple")
2038 (home-page "https://github.com/majn/telegram-purple")
2043 (commit (string-append "v" version))
2047 "0imbzhhq9qbj6gvkckrnjhls2vvmmy8db7l6gsd7lng2pbfcn522"))
2048 (modules '((guix build utils)))
2051 (substitute* "Makefile.in"
2052 ;; By default these two directories point to Pidgin's own
2054 (("^PLUGIN_DIR_PURPLE=.*")
2056 "exec_prefix := @exec_prefix@\n"
2057 "PLUGIN_DIR_PURPLE := @libdir@/purple-2\n"))
2058 (("^DATA_ROOT_DIR_PURPLE=.*")
2059 "DATA_ROOT_DIR_PURPLE := @datarootdir@\n")
2061 ;; Honor sysconfdir instead of trying to write to /etc.
2062 (("DESTDIR\\)/etc/telegram-purple")
2063 "DESTDIR)@sysconfdir@/telegram-purple"))
2065 (patches (search-patches "telegram-purple-adjust-test.patch"))
2066 (file-name (git-file-name name version))))
2067 (build-system gnu-build-system)
2069 `(("pkg-config" ,pkg-config)
2070 ("gettext" ,gettext-minimal)
2073 `(("pidgin" ,pidgin)
2074 ("libgcrypt" ,libgcrypt)
2075 ("libwebp" ,libwebp)
2081 (modify-phases %standard-phases
2082 ;; We're using release tag for repository checkout - let's prepare
2083 ;; header defining GIT_COMMIT manually instead of running git to
2084 ;; identify version which is being compiled. Git repository
2085 ;; is removed anyway and only source code is kept.
2086 (add-after 'unpack 'prepare-commit.h
2088 (with-output-to-file "./commit.h"
2091 (string-append "//generated by guix, use version instead of "
2093 "#ifndef GIT_COMMIT\n"
2094 "# define GIT_COMMIT \"v"
2098 (add-before 'configure 'set-SHELL-variables
2099 ;; Set these environment variables so that 'tgl/configure' uses the
2100 ;; right shell and not /bin/sh.
2102 (let ((bash (which "bash")))
2103 (setenv "SHELL" bash)
2104 (setenv "CONFIG_SHELL" bash)
2106 (synopsis "Telegram messaging support for Pidgin")
2108 "Telegram-purple is a plugin for Libpurple, the communication library
2109 used by the Pidgin instant messaging client, that adds support for the
2110 Telegram messenger.")
2112 ;; Code under tgl/ (the Telegram library) is LGPLv2.1+, but the plugin
2113 ;; itself is GPLv2+.
2114 (license license:gpl2+)))
2116 (define-public tdlib
2117 (let ((commit "278c7acdec83c5ac17d8e1ed0bb2cacbcea62460")
2122 (version (git-version version revision commit))
2126 (url "https://github.com/tdlib/td.git")
2130 "0zlzpl6fgszg18kwycyyyrnkm255dvc6fkq0b0y32m5wvwwl36cv"))
2131 (file-name (git-file-name name version))))
2132 (build-system cmake-build-system)
2136 (list "-DCMAKE_BUILD_TYPE=Release"
2137 "-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work.
2139 (modify-phases %standard-phases
2140 (add-after 'unpack 'remove-failing-tests
2142 (substitute* "test/CMakeLists.txt"
2143 ;; The test cases are compiled into a distinct binary
2144 ;; which uses mtproto.cpp to attempt to connect to
2145 ;; a remote server. Removing this file from the sources
2146 ;; list disables those specific test cases.
2147 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") ""))
2151 ("openssl" ,openssl)
2154 ("doxygen" ,doxygen)))
2155 (synopsis "Cross-platform library for building Telegram clients")
2156 (description "Tdlib is a cross-platform library for creating custom
2157 Telegram clients following the official Telegram API. It can be easily used
2158 from almost any programming language with a C-FFI and features first-class
2159 support for high performance Telegram Bot creation.")
2160 (home-page "https://core.telegram.org/tdlib")
2161 (license license:boost1.0))))
2163 ;;; messaging.scm ends here