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 ;; Remove the snippet and bootstrapping
445 ;; native-inputs together with this patch.
446 "pidgin-libnm.patch"))
447 (modules '((guix build utils)))
450 ;; Remove stale generated file after applying pidgin-libnm.patch.
451 (delete-file "configure")
453 (build-system glib-or-gtk-build-system)
455 `(("pkg-config" ,pkg-config)
457 ("intltool" ,intltool)
462 ;; For bootstrapping after applying pidgin-libnm.patch.
463 ("autoconf" ,autoconf)
464 ("automake" ,automake)
465 ("libtool" ,libtool)))
468 ("libgcrypt" ,libgcrypt)
470 ("cyrus-sasl" ,cyrus-sasl)
472 ("dbus-glib" ,dbus-glib)
473 ("python2-dbus" ,python2-dbus)
477 ;; TODO: gstreamer: patches needed to support gstreamer-1.0 or later
486 ("network-manager" ,network-manager)
490 ("libxscrnsaver" ,libxscrnsaver)
491 ("startup-notification" ,startup-notification)))
494 (list "--disable-gtkspell"
496 "--disable-meanwhile"
497 "--disable-vv" ; XXX remove when we have farstream and gstreamer
498 "--disable-gstreamer" ; XXX patches needed to support gstreamer-1.0
499 "--enable-cyrus-sasl"
500 (string-append "--with-ncurses-headers="
501 (assoc-ref %build-inputs "ncurses")
504 (list (search-path-specification
505 (variable "PURPLE_PLUGIN_PATH")
506 (files (list (string-append "lib/purple-"
507 (version-major version))
509 (home-page "https://www.pidgin.im/")
510 (synopsis "Graphical multi-protocol instant messaging client")
512 "Pidgin is a modular instant messaging client that supports many popular
516 license:gpl2+ ; Most of the code
517 license:lgpl2.1 ; GG protocol plugin (libpurple/protocols/gg/lib)
518 license:lgpl2.0+ ; OSCAR protocol plugin (libpurple/protocols/oscar)
519 ;; The following licenses cover the zephyr protocol plugin:
520 (license:non-copyleft
521 "file://libpurple/protocols/zephyr/mit-copyright.h"
522 "See libpurple/protocols/zephyr/mit-copyright.h in the distribution.")
523 (license:non-copyleft
524 "file://libpurple/protocols/zephyr/mit-sipb-copyright.h"
525 "See libpurple/protocols/zephyr/mit-sipb-copyright.h in the distribution.")))))
527 (define-public pidgin-otr
533 (uri (string-append "https://otr.cypherpunks.ca/"
534 name "-" version ".tar.gz"))
537 "1i5s9rrgbyss9rszq6c6y53hwqyw1k86s40cpsfx5ccl9bprxdgl"))))
538 (build-system gnu-build-system)
540 `(("pkg-config" ,pkg-config)
541 ("intltool" ,intltool)))
545 ("libgpg-error" ,libgpg-error)
546 ("libgcrypt" ,libgcrypt)
549 (home-page "https://otr.cypherpunks.ca/")
550 (synopsis "Off-the-Record Messaging plugin for Pidgin")
552 "Pidgin-OTR is a plugin that adds support for OTR to the Pidgin instant
553 messaging client. OTR (Off-the-Record) Messaging allows you to have private
554 conversations over instant messaging by providing: (1) Encryption: No one else
555 can read your instant messages. (2) Authentication: You are assured the
556 correspondent is who you think it is. (3) Deniability: The messages you send
557 do not have digital signatures that are checkable by a third party. Anyone
558 can forge messages after a conversation to make them look like they came from
559 you. However, during a conversation, your correspondent is assured the
560 messages he sees are authentic and unmodified. (4) Perfect forward secrecy:
561 If you lose control of your private keys, no previous conversation is
563 (license license:gpl2)))
571 (uri (string-append "http://znc.in/releases/archive/znc-"
575 "0m5xf60r40pgbg9lyk56dafxj2hj149pn2wf8vzsp8xgq4kv5zcl"))))
576 (build-system cmake-build-system)
579 (list "-DWANT_CYRUS=ON"
584 (modify-phases %standard-phases
585 (add-after 'unpack 'unpack-googletest
586 ;; Copy the googletest sources to where the CMake build expects them.
587 (lambda* (#:key inputs #:allow-other-keys)
588 (let ((source (assoc-ref inputs "googletest-source"))
589 (target "third_party/googletest"))
591 (copy-recursively source target)
595 ("gettext" ,gettext-minimal)
596 ("googletest-source" ,(package-source googletest))
597 ("pkg-config" ,pkg-config)))
599 `(("cyrus-sasl" ,cyrus-sasl)
605 (home-page "https://znc.in")
606 (synopsis "IRC network bouncer")
607 (description "ZNC is an @dfn{IRC network bouncer} or @dfn{BNC}. It can
608 detach the client from the actual IRC server, and also from selected channels.
609 Multiple clients from different locations can connect to a single ZNC account
610 simultaneously and therefore appear under the same nickname on IRC.")
611 (license license:asl2.0)))
613 (define-public python-nbxmpp
615 (name "python-nbxmpp")
620 (uri (pypi-uri "nbxmpp" version))
623 "1vq89nhamciblyi5579bppnm4sb0zk5cg5hdipfpz174fxvl2wyd"))))
624 (build-system python-build-system)
626 `(#:tests? #f)) ; no tests
627 (home-page "https://dev.gajim.org/gajim/python-nbxmpp")
628 (synopsis "Non-blocking Jabber/XMPP module")
630 "The goal of this python library is to provide a way for Python
631 applications to use Jabber/XMPP networks in a non-blocking way. This library
632 was initially a fork of xmpppy, but uses non-blocking sockets.")
633 (license license:gpl3+)))
635 (define-public python2-nbxmpp
636 (package-with-python2 python-nbxmpp))
644 (uri (string-append "https://gajim.org/downloads/"
645 (version-major+minor version)
646 "/gajim-" version ".tar.bz2"))
649 "0bzxwcpdd4ydh6d6mzpr0gxwhcb0x9ympk55fpvm1hcw9d28a716"))))
650 (build-system python-build-system)
653 (modify-phases %standard-phases
654 (add-after 'unpack 'add-plugin-dirs
656 (substitute* "gajim/common/configpaths.py"
657 (("_paths\\['PLUGINS_USER'\\]\\]")
658 "_paths['PLUGINS_USER']] + \
659 ([os.getenv('GAJIM_PLUGIN_PATH')] \
660 if os.getenv('GAJIM_PLUGIN_PATH') \
661 and Path(os.getenv('GAJIM_PLUGIN_PATH')).is_dir() \
666 (invoke "python" "./setup.py" "test" "-s" "test.no_gui")))
667 (add-after 'install 'wrap-gi-typelib-path
668 (lambda* (#:key outputs #:allow-other-keys)
669 (let ((out (assoc-ref outputs "out")))
672 (let ((file (string-append out "/bin/" name))
673 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
675 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
677 `("XDG_DATA_DIRS" ":" prefix
678 (,(string-append (assoc-ref outputs "out") "/share"))))))
679 '("gajim" "gajim-remote" "gajim-history-manager")))
681 (add-after 'install 'install-icons
682 (lambda* (#:key inputs outputs #:allow-other-keys)
683 (let* ((out (assoc-ref outputs "out"))
684 (adwaita (string-append
685 (assoc-ref inputs "adwaita-icon-theme")
686 "/share/icons/Adwaita"))
687 (hicolor (string-append
688 (assoc-ref inputs "hicolor-icon-theme")
689 "/share/icons/hicolor"))
690 (icons (string-append
692 ,(version-major+minor (package-version python))
693 "/site-packages/gajim/data/icons")))
694 (with-directory-excursion icons
695 (symlink adwaita "Adwaita")
696 (copy-recursively hicolor "hicolor")))
698 (add-after 'install-icons 'wrap-gsettings-schema-dir
699 (lambda* (#:key inputs outputs #:allow-other-keys)
700 (wrap-program (string-append (assoc-ref outputs "out")
702 ;; For GtkFileChooserDialog.
703 `("GSETTINGS_SCHEMA_DIR" =
704 (,(string-append (assoc-ref inputs "gtk+")
705 "/share/glib-2.0/schemas"))))
708 (list (search-path-specification
709 (variable "GAJIM_PLUGIN_PATH")
710 (separator #f) ;single entry
711 (files '("share/gajim/plugins")))
712 ;; Gajim needs to use the propagated inputs of its plugins.
713 (search-path-specification
714 (variable "PYTHONPATH")
715 (files (list (string-append
718 ;; FIXME: Cannot use this expression as it would
719 ;; introduce a circular dependency at the top level.
720 ;; (version-major+minor (package-version python))
723 "/site-packages"))))))
725 `(("intltool" ,intltool)
726 ("python-docutils" ,python-docutils)
727 ("xorg-server" ,xorg-server-for-tests)))
729 `(("adwaita-icon-theme" ,adwaita-icon-theme)
730 ("gnome-keyring" ,gnome-keyring)
732 ("gtkspell3" ,gtkspell3)
733 ("hicolor-icon-theme" ,hicolor-icon-theme)
734 ("libsecret" ,libsecret)
735 ("python-cssutils" ,python-cssutils)
736 ("python-dbus" ,python-dbus)
737 ("python-gnupg" ,python-gnupg)
738 ("python-keyring" ,python-keyring)
739 ("python-nbxmpp" ,python-nbxmpp)
740 ("python-pillow" ,python-pillow)
741 ("python-precis-i18n" ,python-precis-i18n)
742 ("python-pycairo" ,python-pycairo)
743 ("python-pygobject" ,python-pygobject)
744 ("python-pyopenssl" ,python-pyopenssl)
745 ("python-qrcode" ,python-qrcode)))
746 (home-page "https://gajim.org/")
747 (synopsis "Jabber (XMPP) client")
748 (description "Gajim is a feature-rich and easy to use Jabber/XMPP client.
749 Among its features are: a tabbed chat window and single window modes; support
750 for group chat (with Multi-User Chat protocol), invitation, chat to group chat
751 transformation; audio and video conferences; file transfer; TLS, GPG and
752 end-to-end encryption support; XML console.")
753 (license license:gpl3)))
755 (define-public gajim-omemo
760 (method url-fetch/zipbomb)
762 "https://ftp.gajim.org/plugins_releases/omemo_"
766 "1mif5qkrvxclqbqmq6njini4laznbs5nn82w2f1hkl8c1284dvgi"))))
767 (build-system trivial-build-system)
769 `(#:modules ((guix build utils))
772 (use-modules (guix build utils))
773 (let* ((out (assoc-ref %outputs "out"))
774 (share (in-vicinity out "share/gajim/plugins"))
775 (source (assoc-ref %build-inputs "source")))
777 (copy-recursively source share)
780 `(("python-axolotl" ,python-axolotl)))
782 "https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin")
783 (synopsis "Gajim OMEMO plugin")
785 "This package provides the Gajim OMEMO plugin. OMEMO is an XMPP
786 Extension Protocol (XEP) for secure multi-client end-to-end encryption based
787 on Axolotl and PEP.")
788 (license license:gpl3+)))
797 (uri (string-append "https://github.com/dino/dino/releases/download/v"
798 version "/dino-" version ".tar.gz"))
801 "0dcq2jhpywgxrp9x1qqmrl2z50hazspqj547b9zz70apy3y4418h"))))
802 (build-system cmake-build-system)
805 #:parallel-build? #f ; not supported
806 #:modules ((guix build cmake-build-system)
807 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
809 #:imported-modules (,@%gnu-build-system-modules
810 (guix build cmake-build-system)
811 (guix build glib-or-gtk-build-system))
813 (modify-phases %standard-phases
814 (add-after 'install 'glib-or-gtk-wrap
815 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
818 ("libsignal-protocol-c" ,libsignal-protocol-c)
819 ("libgcrypt" ,libgcrypt)
821 ("qrencode" ,qrencode)
825 ("glib-networking" ,glib-networking)
826 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
828 `(("pkg-config" ,pkg-config)
831 ("gettext" ,gettext-minimal)))
832 (home-page "https://dino.im")
833 (synopsis "Graphical Jabber (XMPP) client")
834 (description "Dino is a Jabber (XMPP) client which aims to fit well into
835 a graphical desktop environment like GNOME.")
836 (license license:gpl3+)))
838 (define-public prosody
844 (uri (string-append "https://prosody.im/downloads/source/"
845 "prosody-" version ".tar.gz"))
848 "11xz4milv2962qf75vrdwsvd8sy2332nf69202rmvz5989pvvnng"))))
849 (build-system gnu-build-system)
851 `(#:tests? #f ;tests require "busted"
852 #:configure-flags (list "--no-example-certs")
853 #:modules ((ice-9 match)
855 (guix build gnu-build-system)
858 (modify-phases %standard-phases
859 (add-after 'unpack 'fix-configure-script
861 ;; The configure script aborts when it encounters unexpected
862 ;; arguments. Make it more tolerant.
863 (substitute* "configure"
866 (add-after 'unpack 'fix-makefile
868 (substitute* "GNUmakefile"
869 ;; prosodyctl needs to read the configuration file.
870 (("^INSTALLEDCONFIG =.*") "INSTALLEDCONFIG = /etc/prosody\n")
871 ;; prosodyctl needs a place to put auto-generated certificates.
872 (("^INSTALLEDDATA =.*") "INSTALLEDDATA = /var/lib/prosody\n"))
874 (add-after 'install 'wrap-programs
875 (lambda* (#:key inputs outputs #:allow-other-keys)
876 ;; Make sure all executables in "bin" find the required Lua
877 ;; modules at runtime.
878 (let* ((out (assoc-ref outputs "out"))
879 (bin (string-append out "/bin/"))
880 (deps (delete #f (map (match-lambda
882 (if (string-prefix? "lua" label)
885 (lua-path (string-join
888 path "/share/lua/5.2/?.lua;"
889 path "/share/lua/5.2/?/?.lua"))
892 (lua-cpath (string-join
895 path "/lib/lua/5.2/?.so;"
896 path "/lib/lua/5.2/?/?.so"))
899 (openssl (assoc-ref inputs "openssl"))
900 (coreutils (assoc-ref inputs "coreutils"))
901 (path (map (lambda (dir)
902 (string-append dir "/bin"))
903 (list openssl coreutils))))
904 (for-each (lambda (file)
906 `("LUA_PATH" ";" = (,lua-path))
907 `("LUA_CPATH" ";" = (,lua-cpath))
908 `("PATH" ":" prefix ,path)))
909 (find-files bin ".*"))
915 ("lua5.2-bitop" ,lua5.2-bitop)
916 ("lua5.2-expat" ,lua5.2-expat)
917 ("lua5.2-socket" ,lua5.2-socket)
918 ("lua5.2-filesystem" ,lua5.2-filesystem)
919 ("lua5.2-sec" ,lua5.2-sec)))
920 (home-page "https://prosody.im/")
921 (synopsis "Jabber (XMPP) server")
922 (description "Prosody is a modern XMPP communication server. It aims to
923 be easy to set up and configure, and efficient with system resources.
924 Additionally, for developers it aims to be easy to extend and give a flexible
925 system on which to rapidly develop added functionality, or prototype new
927 (license license:x11)))
929 (define-public prosody-http-upload
930 (let ((changeset "765735bb590b")
933 (name "prosody-http-upload")
934 (version (string-append "0-" revision "." (string-take changeset 7)))
938 (url "https://hg.prosody.im/prosody-modules/")
939 (changeset changeset)))
940 (file-name (string-append name "-" version "-checkout"))
943 "142wrcism70nf8ffahhd961cqg2pi1h7ic8adfs3zwh0j3pnf41f"))))
944 (build-system trivial-build-system)
946 '(#:modules ((guix build utils))
949 (use-modules (guix build utils))
950 (let ((out (assoc-ref %outputs "out"))
951 (source (assoc-ref %build-inputs "source")))
952 (with-directory-excursion (in-vicinity source "mod_http_upload")
953 (install-file "mod_http_upload.lua" out))
955 (home-page "https://modules.prosody.im/mod_http_upload.html")
956 (synopsis "XEP-0363: Allow clients to upload files over HTTP")
957 (description "This module implements XEP-0363: it allows clients to
958 upload files over HTTP.")
959 (license (package-license prosody)))))
961 (define-public prosody-smacks
962 (let ((changeset "67f1d1f22625")
965 (name "prosody-smacks")
966 (version (string-append "0-" revision "." (string-take changeset 7)))
970 (url "https://hg.prosody.im/prosody-modules/")
971 (changeset changeset)))
972 (file-name (string-append name "-" version "-checkout"))
975 "020ngpax30fgarah98yvlj0ni8rcdwq60if03a9hqdw8mic0nxxs"))))
976 (build-system trivial-build-system)
978 '(#:modules ((guix build utils))
981 (use-modules (guix build utils))
982 (let ((out (assoc-ref %outputs "out"))
983 (source (assoc-ref %build-inputs "source")))
984 (with-directory-excursion (in-vicinity source "mod_smacks")
985 (install-file "mod_smacks.lua" out))
987 (home-page "https://modules.prosody.im/mod_smacks.html")
988 (synopsis "XEP-0198: Reliability and fast reconnects for XMPP")
989 (description "This module implements XEP-0198: when supported by both
990 the client and server, it can allow clients to resume a disconnected session,
991 and prevent message loss.")
992 (license (package-license prosody)))))
994 (define-public libtoxcore
996 (commit "bf69b54f64003d160d759068f4816b2d9b2e1e21"))
999 (version (string-append "0.0.0" "-"
1000 revision "."(string-take commit 7)))
1004 (url "https://github.com/irungentoo/toxcore.git")
1006 (file-name (string-append name "-" version "-checkout"))
1009 "11lqra4yd7v293cp286ynff5lqz1pprzg8vn3wq6vryj08g88zqb"))))
1010 (build-system gnu-build-system)
1011 (arguments `(#:tests? #f)) ; FIXME: tests hang, some fail.
1013 `(("autoconf" ,autoconf)
1014 ("automake" ,automake)
1015 ("libtool" ,libtool)
1017 ("pkg-config" ,pkg-config)))
1019 `(("libsodium" ,libsodium)
1021 ("libvpx" ,libvpx)))
1022 (synopsis "Library for the Tox encrypted messenger protocol")
1024 "C library implementation of the Tox encrypted messenger protocol.")
1025 (license license:gpl3+)
1026 (home-page "https://tox.chat"))))
1028 ;; Some tox clients move to c-toxcore, which seems to be where all the
1029 ;; recent development happens. It is run by the same developers as toxcore,
1030 ;; forked into a group namespace.
1031 (define-public c-toxcore
1039 (url "https://github.com/TokTok/c-toxcore.git")
1040 (commit (string-append "v" version))))
1041 (file-name (git-file-name name version))
1044 "0aljr9hqybla6p61af6fdkv0x8gph7c2wacqqa9hq2z9w0p4fs5j"))))
1046 `(#:tests? #f)) ; FIXME: Testsuite seems to stay stuck on test 3. Disable
1048 (build-system cmake-build-system)
1050 `(("pkg-config" ,pkg-config)))
1052 `(("libsodium" ,libsodium)
1054 ("libvpx" ,libvpx)))
1055 (home-page "https://tox.chat")
1056 (synopsis "Library for the Tox encrypted messenger protocol")
1058 "Official fork of the C library implementation of the Tox encrypted
1059 messenger protocol.")
1060 (license license:gpl3+)))
1070 (url "https://github.com/uTox/uTox.git")
1071 (commit (string-append "v" version))
1072 (recursive? #t))) ;; Needed for 'minini' git submodule.
1073 (file-name (string-append name "-" version "-checkout"))
1076 "17kwqw24iqljp2icih9k6ikx12gzr8zzqr8y5h35bg8m5s8pasq5"))))
1077 (build-system cmake-build-system)
1079 `(#:configure-flags '("-DENABLE_TESTS=on")
1081 (modify-phases %standard-phases
1082 (add-before 'build 'patch-absolute-filename-libgtk-3
1083 (lambda* (#:key inputs outputs #:allow-other-keys)
1084 (substitute* "../source/src/xlib/gtk.c"
1086 (string-append (assoc-ref inputs "gtk+")
1087 "/lib/libgtk-3.so")))))
1088 (add-after 'install 'wrap-program
1089 (lambda* (#:key inputs outputs #:allow-other-keys)
1090 (wrap-program (string-append (assoc-ref outputs "out")
1092 ;; For GtkFileChooserDialog.
1093 `("GSETTINGS_SCHEMA_DIR" =
1094 (,(string-append (assoc-ref inputs "gtk+")
1095 "/share/glib-2.0/schemas")))))))))
1098 ("filteraudio" ,filteraudio)
1099 ("fontconfig" ,fontconfig)
1100 ("freetype" ,freetype)
1101 ("libsodium" ,libsodium)
1102 ("c-toxcore" ,c-toxcore)
1106 ("libxext" ,libxext)
1107 ("libxrender" ,libxrender)
1109 ("v4l-utils" ,v4l-utils)))
1112 ("pkg-config" ,pkg-config)))
1113 (synopsis "Lightweight Tox client")
1115 "Utox is a lightweight Tox client. Tox is a distributed and secure
1116 instant messenger with audio and video chat capabilities.")
1117 (home-page "http://utox.org/")
1118 (license license:gpl3)))
1126 (uri (string-append "https://github.com/qTox/qTox/archive/v"
1130 "10n3cgw9xaqin9la8wpd8v83bkjmimicgbyp5ninsdgsrgky4hmq"))
1131 (file-name (string-append name "-" version ".tar.gz"))))
1132 (build-system cmake-build-system)
1135 (modify-phases %standard-phases
1136 (add-after 'unpack 'fix-reproducibility-issues
1138 (substitute* "src/main.cpp"
1139 (("__DATE__") "\"\"")
1140 (("__TIME__") "\"\"")
1141 (("TIMESTAMP") "\"\""))
1143 ;; Ensure that icons are found at runtime.
1144 (add-after 'install 'wrap-executable
1145 (lambda* (#:key inputs outputs #:allow-other-keys)
1146 (let ((out (assoc-ref outputs "out")))
1147 (wrap-program (string-append out "/bin/qtox")
1148 `("QT_PLUGIN_PATH" prefix
1149 ,(list (string-append (assoc-ref inputs "qtsvg")
1150 "/lib/qt5/plugins/"))))))))))
1152 `(("ffmpeg" ,ffmpeg)
1153 ("filteraudio" ,filteraudio)
1156 ("libsodium" ,libsodium)
1157 ("c-toxcore" ,c-toxcore)
1159 ("libxscrnsaver" ,libxscrnsaver)
1161 ("libexif" ,libexif)
1164 ("qrencode" ,qrencode)
1167 ("sqlcipher" ,sqlcipher)))
1169 `(("pkg-config" ,pkg-config)
1170 ("qmake" ,qttools)))
1171 (home-page "https://qtox.github.io/")
1172 (synopsis "Tox chat client using Qt")
1173 (description "qTox is a Tox client that follows the Tox design
1174 guidelines. It provides an easy to use application that allows you to
1175 connect with friends and family without anyone else listening in.")
1176 (license license:gpl3+)))
1178 (define-public pybitmessage
1180 (name "pybitmessage")
1186 (url "https://github.com/Bitmessage/PyBitmessage.git")
1188 (file-name (string-append name "-" version "-checkout"))
1191 "1lmhbpwsqh1v93krlqqhafw2pc3y0qp8zby186yllbph6s8kdp35"))))
1194 ;; Package "pyopencl", required in addition to numpy for OpenCL support.
1195 ;; Package "gst123", required in addition to alsa-utils and
1196 ;; mpg123 for sound support.
1197 `(("python2-msgpack" ,python2-msgpack)
1198 ("python2-pythondialog" ,python2-pythondialog)
1199 ("python2-pyqt-4" ,python2-pyqt-4)
1200 ("python2-sip" ,python2-sip)
1201 ("python2-pysqlite" ,python2-pysqlite)
1202 ("python2-pyopenssl" ,python2-pyopenssl)))
1204 `(("openssl" ,openssl)))
1205 (build-system python-build-system)
1207 `(#:modules ((guix build python-build-system)
1209 #:tests? #f ;no test target
1212 (modify-phases %standard-phases
1213 (add-after 'unpack 'fix-unmatched-python-shebangs
1214 (lambda* (#:key inputs #:allow-other-keys)
1215 (substitute* "src/bitmessagemain.py"
1216 (("#!/usr/bin/env python2.7")
1217 (string-append "#!" (which "python"))))
1218 (substitute* "src/bitmessagecli.py"
1219 (("#!/usr/bin/env python2.7.x")
1220 (string-append "#!" (which "python"))))
1222 (add-after 'unpack 'fix-depends
1223 (lambda* (#:key inputs #:allow-other-keys)
1224 (substitute* "src/depends.py"
1226 (string-append (assoc-ref inputs "openssl")
1227 "/lib/libcrypto.so")))
1229 (add-after 'unpack 'fix-local-files-in-paths
1230 (lambda* (#:key outputs #:allow-other-keys)
1231 (substitute* "src/proofofwork.py"
1233 (string-append (assoc-ref outputs "out")
1234 "/lib/bitmsghash.so")))
1236 (add-after 'unpack 'fix-pyelliptic
1237 (lambda* (#:key inputs #:allow-other-keys)
1238 (substitute* "src/pyelliptic/openssl.py"
1240 (string-append (assoc-ref inputs "openssl")
1241 "/lib/libcrypto.so"))
1243 (string-append (assoc-ref inputs "openssl")
1246 (add-after 'unpack 'noninteractive-build
1247 ;; This applies upstream commit 4c597d3f7cf9f83a763472aa165a1a4292019f20
1249 (substitute* "setup.py"
1250 (("except NameError")
1251 "except EOFError, NameError"))
1253 ;; XXX: python setup.py does not build and install bitmsghash,
1254 ;; without it PyBitmessage tries to compile it at first run
1255 ;; in the store, which due to obvious reasons fails. Do it
1256 ;; and place it in /lib.
1257 (add-after 'unpack 'build-and-install-bitmsghash
1258 (lambda* (#:key outputs #:allow-other-keys)
1259 (with-directory-excursion "src/bitmsghash"
1261 (install-file "bitmsghash.so"
1262 (string-append (assoc-ref outputs "out") "/lib")))
1264 (license license:expat)
1266 "Distributed and trustless peer-to-peer communications protocol
1267 for sending encrypted messages to one person or many subscribers.")
1268 (synopsis "Distributed peer-to-peer communication")
1269 (home-page "https://bitmessage.org/")))
1271 (define-public ytalk
1278 (uri (string-append "ftp://ftp.ourproject.org/pub/ytalk/ytalk-"
1282 "1d3jhnj8rgzxyxjwfa22vh45qwzjvxw1qh8fz6b7nfkj3zvk9jvf"))))
1283 (build-system gnu-build-system)
1285 `(("ncurses" ,ncurses)))
1286 (home-page "https://ytalk.ourproject.org")
1287 (synopsis "Multi-user chat program")
1288 (description "Ytalk is a replacement for the BSD talk program. Its main
1289 advantage is the ability to communicate with any arbitrary number of users at
1290 once. It supports both talk protocols (\"talk\" and \"ntalk\") and can communicate
1291 with several different talk daemons at the same time.")
1292 (license license:gpl2+)))
1294 (define-public gloox
1301 (uri (string-append "https://camaya.net/download/gloox-"
1302 version ".tar.bz2"))
1304 (base32 "12jz8glg9zmyk0iyv1ywf5i0hq93dfq8lvn6lyjgy8730w66mjwp"))))
1305 (build-system gnu-build-system)
1307 `(("libidn" ,libidn)
1311 `(("pkg-config" ,pkg-config)))
1312 (synopsis "Portable high-level Jabber/XMPP library for C++")
1314 "gloox is a full-featured Jabber/XMPP client library,
1315 written in ANSI C++. It makes writing spec-compliant clients easy
1316 and allows for hassle-free integration of Jabber/XMPP functionality
1317 into existing applications.")
1318 (home-page "https://camaya.net/gloox")
1319 (license license:gpl3)))
1321 (define-public perl-net-psyc
1323 (name "perl-net-psyc")
1328 (uri (string-append "https://perl.psyc.eu/"
1329 "perlpsyc-" version ".zip"))
1330 (file-name (string-append name "-" version ".zip"))
1333 "0vsjclglkwgbyd9m5ad642fyysxw2x725nhq4r2m9pvqaq6s5yf2"))))
1334 (build-system perl-build-system)
1336 `(("unzip" ,unzip)))
1338 `(("perl-curses" ,perl-curses)
1339 ("perl-io-socket-ssl" ,perl-io-socket-ssl)))
1342 (modify-phases %standard-phases
1343 (delete 'configure) ; No configure script
1344 ;; There is a Makefile, but it does not install everything
1345 ;; (leaves out psycion) and says
1346 ;; "# Just to give you a rough idea". XXX: Fix it upstream.
1348 (lambda _ (invoke "make" "manuals")))
1350 (lambda* (#:key outputs #:allow-other-keys)
1351 (let* ((out (assoc-ref outputs "out"))
1352 (doc (string-append out "/share/doc/perl-net-psyc"))
1353 (man1 (string-append out "/share/man/man1"))
1354 (man3 (string-append out "/share/man/man3"))
1355 (bin (string-append out "/bin"))
1356 (libpsyc (string-append out "/lib/psyc/ion"))
1357 (libperl (string-append out "/lib/perl5/site_perl/"
1358 ,(package-version perl))))
1360 (copy-recursively "lib/perl5" libperl)
1361 (copy-recursively "lib/psycion" libpsyc)
1362 (copy-recursively "bin" bin)
1363 (install-file "cgi/psycpager" (string-append doc "/cgi"))
1364 (copy-recursively "contrib" (string-append doc "/contrib"))
1365 (copy-recursively "hooks" (string-append doc "/hooks"))
1366 (copy-recursively "sdj" (string-append doc "/sdj"))
1367 (install-file "README.txt" doc)
1368 (install-file "TODO.txt" doc)
1369 (copy-recursively "share/man/man1" man1)
1370 (copy-recursively "share/man/man3" man3)
1372 (add-after 'install 'wrap-programs
1373 (lambda* (#:key outputs #:allow-other-keys)
1374 ;; Make sure all executables in "bin" find the Perl modules
1375 ;; provided by this package at runtime.
1376 (let* ((out (assoc-ref outputs "out"))
1377 (bin (string-append out "/bin/"))
1378 (path (getenv "PERL5LIB")))
1379 (for-each (lambda (file)
1381 `("PERL5LIB" ":" prefix (,path))))
1382 (find-files bin "\\.*$"))
1385 "@code{Net::PSYC} with support for TCP, UDP, Event.pm, @code{IO::Select} and
1386 Gtk2 event loops. This package includes 12 applications and additional scripts:
1387 psycion (a @uref{https://about.psyc.eu,PSYC} chat client), remotor (a control console
1388 for @uref{https://torproject.org,tor} router) and many more.")
1389 (synopsis "Perl implementation of PSYC protocol")
1390 (home-page "https://perl.psyc.eu")
1391 (license (list license:gpl2
1392 license:perl-license
1393 ;; contrib/irssi-psyc.pl:
1394 license:public-domain
1395 ;; bin/psycplay states AGPL with no version:
1398 (define-public libpsyc
1401 (version "20160913")
1404 (uri (string-append "http://www.psyced.org/files/"
1405 name "-" version ".tar.xz"))
1408 "14q89fxap05ajkfn20rnhc6b1h4i3i2adyr7y6hs5zqwb2lcmc1p"))))
1409 (build-system gnu-build-system)
1413 ("procps" ,procps)))
1417 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1419 (modify-phases %standard-phases
1420 ;; The rust bindings are the only ones in use, the lpc bindings
1421 ;; are in psyclpc. The other bindings are not used by anything,
1422 ;; the chances are high that the bindings do not even work,
1423 ;; therefore we do not include them.
1424 ;; TODO: Get a cargo build system in Guix.
1425 (delete 'configure)))) ; no configure script
1426 (home-page "https://about.psyc.eu/libpsyc")
1428 "@code{libpsyc} is a PSYC library in C which implements
1429 core aspects of PSYC, useful for all kinds of clients and servers
1431 (synopsis "PSYC library in C")
1432 (license license:agpl3+)))
1434 ;; This commit removes the historic bundled pcre and makes psyclpc reproducible.
1435 (define-public psyclpc
1436 (let* ((commit "61cf9aa81297085e5c40170fd01221c752f8deba")
1440 (version (string-append "20160821-" revision "." (string-take commit 7)))
1444 (url "git://git.psyced.org/git/psyclpc")
1446 (file-name (string-append name "-" version "-checkout"))
1449 "1viwqymbhn3cwvx0zl58rlzl5gw47zxn0ldg2nbi55ghm5zxl1z5"))))
1450 (build-system gnu-build-system)
1452 `(#:tests? #f ; There are no tests/checks.
1454 ;; If you have questions about this part, look at
1455 ;; "src/settings/psyced" and the ebuild.
1457 "--enable-use-tls=yes"
1458 "--enable-use-mccp" ; Mud Client Compression Protocol, leave this enabled.
1459 (string-append "--prefix="
1460 (assoc-ref %outputs "out"))
1461 ;; src/Makefile: Set MUD_LIB to the directory which contains
1462 ;; the mud data. defaults to MUD_LIB = @libdir@
1463 (string-append "--libdir="
1464 (assoc-ref %outputs "out")
1465 "/opt/psyced/world")
1466 (string-append "--bindir="
1467 (assoc-ref %outputs "out")
1469 ;; src/Makefile: Set ERQ_DIR to directory which contains the
1470 ;; stuff which ERQ can execute (hopefully) savely. Was formerly
1471 ;; defined in config.h. defaults to ERQ_DIR= @libexecdir@
1472 (string-append "--libexecdir="
1473 (assoc-ref %outputs "out")
1476 (modify-phases %standard-phases
1477 (add-before 'configure 'chdir-to-src
1478 ;; We need to pass this as env variables
1479 ;; and manually change the directory.
1482 (setenv "CONFIG_SHELL" (which "sh"))
1483 (setenv "SHELL" (which "sh"))
1485 #:make-flags (list "install-all")))
1488 ("openssl" ,openssl-1.0)
1491 `(("pkg-config" ,pkg-config)
1493 ("gettext" ,gettext-minimal)
1494 ("help2man" ,help2man)
1495 ("autoconf" ,autoconf)
1496 ("automake" ,automake)))
1497 (home-page "http://lpc.psyc.eu/")
1498 (synopsis "psycLPC is a multi-user network server programming language")
1500 "LPC is a bytecode language, invented to specifically implement
1501 multi user virtual environments on the internet. This technology is used for
1502 MUDs and also the psyced implementation of the Protocol for SYnchronous
1503 Conferencing (PSYC). psycLPC is a fork of LDMud with some new features and
1505 (license license:gpl2))))
1507 (define-public loudmouth
1514 (uri (string-append "https://mcabber.com/files/loudmouth/"
1515 name "-" version ".tar.bz2"))
1518 "0b6kd5gpndl9nzis3n6hcl0ldz74bnbiypqgqa1vgb0vrcar8cjl"))))
1519 (build-system gnu-build-system)
1523 ("libidn" ,libidn)))
1525 `(("pkg-config" ,pkg-config)
1527 ("glib" ,glib "bin") ; gtester
1528 ("gtk-doc" ,gtk-doc)))
1529 (home-page "https://mcabber.com/")
1531 "Loudmouth is a lightweight and easy-to-use C library for programming
1532 with the XMPP (formerly known as Jabber) protocol. It is designed to be
1533 easy to get started with and yet extensible to let you do anything the XMPP
1535 (synopsis "Asynchronous XMPP library")
1536 ;; The files have LGPL2.0+ headers, but COPYING specifies LGPL2.1.
1537 (license license:lgpl2.0+)))
1539 (define-public mcabber
1546 (uri (string-append "https://mcabber.com/files/"
1547 name "-" version ".tar.bz2"))
1550 "1ggh865p1rf10ffsnf4g6qv9i8bls36dxdb1nzs5r9vdqci2rz04"))))
1551 (build-system gnu-build-system)
1553 '(#:configure-flags (list "--enable-otr"
1554 "--enable-aspell")))
1561 ("ncurses" ,ncurses)
1562 ("loudmouth" ,loudmouth)))
1564 `(("pkg-config" ,pkg-config)))
1565 (home-page "https://mcabber.com")
1567 "Mcabber is a small XMPP (Jabber) console client, which includes features
1568 such as SASL and TLS support, @dfn{Multi-User Chat} (MUC) support, logging,
1569 command-completion, OpenPGP encryption, @dfn{Off-the-Record Messaging} (OTR)
1570 support, and more.")
1571 (synopsis "Small XMPP console client")
1572 (license license:gpl2+)))
1574 (define-public freetalk
1580 (uri (string-append "mirror://gnu/freetalk/freetalk-"
1584 "1rmrn7a1bb7vm26yaklrvx008a9qhwc32s57dwrlf40lv9gffwny"))))
1585 (build-system gnu-build-system)
1588 (modify-phases %standard-phases
1589 ;; For 'system' commands in Scheme code.
1590 (add-after 'install 'wrap-program
1591 (lambda* (#:key inputs outputs #:allow-other-keys)
1592 (let* ((out (assoc-ref outputs "out"))
1593 (bash (assoc-ref inputs "bash"))
1594 (coreutils (assoc-ref inputs "coreutils"))
1595 (less (assoc-ref inputs "less")))
1596 (wrap-program (string-append out "/bin/freetalk")
1599 (string-append dir "/bin"))
1600 (list bash coreutils less))))
1603 `(("autoconf" ,autoconf)
1604 ("automake" ,automake)
1605 ("pkg-config" ,pkg-config)
1606 ("texinfo" ,texinfo)))
1610 ("guile" ,guile-2.0)
1612 ("loudmouth" ,loudmouth)
1613 ("readline" ,readline)))
1614 (synopsis "Extensible console-based Jabber client")
1616 "GNU Freetalk is a command-line Jabber/XMPP chat client. It notably uses
1617 the Readline library to handle input, so it features convenient navigation of
1618 text as well as tab-completion of buddy names, commands and English words. It
1619 is also scriptable and extensible via Guile.")
1620 (home-page "https://www.gnu.org/software/freetalk/")
1621 (license license:gpl3+)))
1623 (define-public libmesode
1630 (url "https://github.com/boothj5/libmesode.git")
1632 (file-name (git-file-name name version))
1635 "0xzfg1xx88cn36352nnjlb1p7xyw32yqkhjzq10px88iaaqz1vv0"))))
1636 (build-system gnu-build-system)
1639 ("openssl" ,openssl)))
1641 `(("autoconf" ,autoconf)
1642 ("automake" ,automake)
1643 ("libtool" ,libtool)
1644 ("pkg-config" ,pkg-config)))
1645 (synopsis "C library for writing XMPP clients")
1646 (description "Libmesode is a fork of libstrophe for use with Profanity
1647 XMPP Client. In particular, libmesode provides extra TLS functionality such as
1648 manual SSL certificate verification.")
1649 (home-page "https://github.com/boothj5/libmesode")
1651 (license (list license:gpl3+ license:x11))))
1653 (define-public libstrophe
1661 (url "https://github.com/strophe/libstrophe.git")
1663 (file-name (git-file-name name version))
1665 (base32 "1g1l0w9z9hdy5ncdvd9097gi7k7783did6py5h9camlpb2fnk5mk"))))
1666 (build-system gnu-build-system)
1669 ("openssl" ,openssl)))
1671 `(("autoconf" ,autoconf)
1672 ("automake" ,automake)
1673 ("libtool" ,libtool)
1674 ("pkg-config" ,pkg-config)))
1675 (synopsis "C library for writing XMPP clients")
1676 (description "Libstrophe is a minimal XMPP library written in C. It has
1677 almost no external dependencies, only an XML parsing library (expat or libxml
1678 are both supported).")
1679 (home-page "http://strophe.im/libstrophe")
1681 (license (list license:gpl3+ license:x11))))
1683 (define-public profanity
1689 (uri (string-append "https://profanity-im.github.io/profanity-"
1693 "15yrx2ir2bilxpjfaxpjb93yjpvpvcvh5r7wbsjx6kmmy7qg2zvb"))))
1694 (build-system gnu-build-system)
1697 (list "--enable-c-plugins"
1702 "--enable-notifications")))
1708 ("libmesode" ,libmesode)
1710 ("ncurses" ,ncurses)
1711 ("openssl" ,openssl)
1712 ("readline" ,readline)))
1714 `(("autoconf" ,autoconf)
1715 ("autoconf-archive" ,autoconf-archive)
1716 ("automake" ,automake)
1719 ("libnotify" ,libnotify)
1720 ("libtool" ,libtool)
1721 ("libsignal-protocol-c" ,libsignal-protocol-c)
1722 ("pkg-config" ,pkg-config)))
1723 (synopsis "Console-based XMPP client")
1724 (description "Profanity is a console based XMPP client written in C
1725 using ncurses and libmesode, inspired by Irssi.")
1726 (home-page "https://profanity-im.github.io")
1727 (license license:gpl3+)))
1729 (define-public libircclient
1731 (name "libircclient")
1736 (uri (string-append "mirror://sourceforge/libircclient/libircclient/"
1737 version "/libircclient-" version ".tar.gz"))
1740 "0b9wa0h3xc31wpqlvgxgnvqp5wgx3kwsf5s9432m5cj8ycx6zcmv"))))
1741 (build-system gnu-build-system)
1743 `(("openssl" ,openssl)))
1746 (list (string-append "--libdir="
1747 (assoc-ref %outputs "out") "/lib")
1751 #:tests? #f)) ; no test suite
1752 (home-page "https://www.ulduzsoft.com/libircclient/")
1753 (synopsis "Library implementing the client IRC protocol")
1754 (description "Libircclient is a library which implements the client IRC
1755 protocol. It is designed to be small, fast, portable and compatible with the
1756 RFC standards as well as non-standard but popular features. It can be used for
1757 building the IRC clients and bots.")
1758 (license license:lgpl3+)))
1760 (define-public toxic
1768 (url "https://github.com/JFreegman/toxic.git")
1769 (commit (string-append "v" version))))
1771 (base32 "09l2j3lwvrq7bf3051vjsnml9w63790ly3iylgf26gkrmld6k31w"))
1772 (file-name (git-file-name name version))))
1773 (build-system gnu-build-system)
1775 `(#:tests? #f ; no tests
1779 (string-append "PREFIX="
1780 (assoc-ref %outputs "out")))
1782 (modify-phases %standard-phases
1784 (add-before 'build 'enable-python-scripting
1786 ;; XXX: For compatibility with Python 3.8, adjust python3-config
1787 ;; invokation to include --embed; see
1788 ;; <https://github.com/JFreegman/toxic/issues/533>.
1789 (substitute* "cfg/checks/python.mk"
1790 (("python3-config --ldflags")
1791 "python3-config --ldflags --embed"))
1792 (setenv "ENABLE_PYTHON" "1")
1795 `(("c-toxcore" ,c-toxcore)
1797 ("freealut" ,freealut)
1798 ("gdk-pixbuf" ,gdk-pixbuf) ; for libnotify.pc
1799 ("libconfig" ,libconfig)
1800 ("libnotify" ,libnotify)
1804 ("ncurses" ,ncurses)
1807 ("qrencode" ,qrencode)))
1809 `(("pkg-config" ,pkg-config)))
1810 (home-page "https://github.com/JFreegman/toxic")
1811 (synopsis "Tox chat client using ncurses")
1812 (description "Toxic is a console-based instant messaging client, using
1813 c-toxcore and ncurses. It provides audio calls, sound and desktop
1814 notifications, and Python scripting support.")
1815 (license license:gpl3+)))
1817 (define-public libqmatrixclient
1819 (name "libqmatrixclient")
1825 (url "https://github.com/quotient-im/libQuotient")
1827 (file-name (git-file-name name version))
1829 (base32 "0gkwr3yw6k2m0j8cc085b5p2q788rf5nhp1p5hc5d55pc7mci2qs"))))
1830 (build-system cmake-build-system)
1832 `(("qtbase" ,qtbase)
1833 ("qtmultimedia" ,qtmultimedia)))
1835 `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON")
1836 #:tests? #f)) ; no tests
1837 (home-page "https://matrix.org/docs/projects/sdk/libqmatrixclient.html")
1838 (synopsis "Qt5 client library for the Matrix instant messaging protocol")
1839 (description "libqmatrixclient is a Qt5 library to write clients for the
1840 Matrix instant messaging protocol. Quaternion is the reference client
1841 implementation. Quaternion and libqmatrixclient together form the
1842 QMatrixClient project.")
1843 (license license:lgpl2.1+)))
1845 (define-public mtxclient
1853 (url "https://github.com/Nheko-Reborn/mtxclient.git")
1854 (commit (string-append "v" version))))
1855 (file-name (git-file-name name version))
1857 (base32 "0vf5xmn6yfi5lvskfgrdmnalvclzrapcrml92bj9qaa8vq8mfsf2"))))
1861 ;; Disable example binaries (not installed)
1862 "-DBUILD_LIB_EXAMPLES=OFF")
1864 (modify-phases %standard-phases
1865 (add-before 'configure 'disable-network-tests
1867 (substitute* "CMakeLists.txt"
1868 (("add_test\\((BasicConnectivity|ClientAPI|MediaAPI|Encryption|Pushrules)")
1871 (add-before 'configure 'set-home
1873 ;; Tries to create package registry file
1875 (setenv "HOME" "/tmp")
1877 (build-system cmake-build-system)
1880 ("json-modern-cxx" ,json-modern-cxx)
1882 ("libsodium" ,libsodium)
1883 ("openssl" ,openssl)
1887 `(("googletest" ,googletest)
1888 ("pkg-config" ,pkg-config)))
1889 (home-page "https://github.com/Nheko-Reborn/mtxclient")
1890 (synopsis "Client API library for the Matrix protocol")
1891 (description "@code{mtxclient} is a C++ library that implements client API
1892 for the Matrix protocol. It is built on to of @code{Boost.Asio}.")
1893 (license license:expat)))
1895 (define-public nheko
1903 (url "https://github.com/Nheko-Reborn/nheko.git")
1904 (commit (string-append "v" version))))
1905 (file-name (git-file-name name version))
1907 (base32 "12sxibbrn79sxkf9jrm7jrlj7l5vz15claxrrll7pkv9mv44wady"))))
1909 `(#:tests? #f ;no test target
1912 "-DCMAKE_BUILD_TYPE=Release"
1913 "-DCMAKE_CXX_FLAGS=-fpermissive")
1915 (modify-phases %standard-phases
1916 (add-after 'unpack 'remove-Werror
1918 (substitute* "CMakeLists.txt"
1921 (add-after 'unpack 'fix-determinism
1923 ;; Make Qt deterministic.
1924 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
1926 (build-system qt-build-system)
1930 ("json-modern-cxx" ,json-modern-cxx)
1934 ("mtxclient" ,mtxclient)
1935 ("openssl" ,openssl)
1937 ("qtdeclarative" ,qtdeclarative)
1938 ("qtgraphicaleffects" ,qtgraphicaleffects)
1939 ("qtmultimedia" ,qtmultimedia)
1940 ("qtquickcontrols2" ,qtquickcontrols2)
1946 `(("pkg-config" ,pkg-config)
1947 ("qtlinguist" ,qttools)))
1948 (home-page "https://github.com/Nheko-Reborn/nheko")
1949 (synopsis "Desktop client for Matrix using Qt and C++14")
1950 (description "@code{Nheko} want to provide a native desktop app for the
1951 Matrix protocol that feels more like a mainstream chat app and less like an IRC
1954 There is support for:
1956 @item E2E encryption (text messages only: attachments are currently sent unencrypted).
1957 @item User registration.
1958 @item Creating, joining & leaving rooms.
1959 @item Sending & receiving invites.
1960 @item Sending & receiving files and emoji.
1961 @item Typing notifications.
1962 @item Username auto-completion.
1963 @item Message & mention notifications.
1964 @item Redacting messages.
1965 @item Read receipts.
1966 @item Basic communities support.
1967 @item Room switcher (@key{ctrl-K}).
1968 @item Light, Dark & System themes.
1970 (license license:gpl3+)))
1972 (define-public quaternion
1975 (version "0.0.9.4e")
1980 (url "https://github.com/quotient-im/Quaternion")
1982 (file-name (git-file-name name version))
1984 (base32 "0hqhg7l6wpkdbzrdjvrbqymmahziri07ba0hvbii7dd2p0h248fv"))))
1985 (build-system qt-build-system)
1987 `(("libqmatrixclient" ,libqmatrixclient)
1989 ("qtdeclarative" ,qtdeclarative)
1990 ("qtmultimedia" ,qtmultimedia)
1991 ("qtquickcontrols" ,qtquickcontrols)
1992 ("qtquickcontrols2" ,qtquickcontrols2)
1994 ("qttools" ,qttools)))
1996 `(#:tests? #f)) ; no tests
1997 (home-page "https://matrix.org/docs/projects/client/quaternion.html")
1998 (synopsis "Graphical client for the Matrix instant messaging protocol")
1999 (description "Quaternion is a Qt5 desktop client for the Matrix instant
2000 messaging protocol. It uses libqmatrixclient and is its reference client
2001 implementation. Quaternion and libqmatrixclient together form the
2002 QMatrixClient project.")
2003 (license (list license:gpl3+ ; all source code
2004 license:lgpl3+)))) ; icons/breeze
2006 (define-public hangups
2013 (uri (pypi-uri "hangups" version))
2015 (base32 "0ww9z9kcb02pwnr8q1ll31wkzspc1fci1ly8ifrwzxysp4rxy3j5"))))
2016 (build-system python-build-system)
2019 (modify-phases %standard-phases
2020 (add-before 'build 'relax-dependencies
2021 ;; Relax overly strict package version specifications.
2023 (substitute* "setup.py"
2027 `(("python-aiohttp" ,python-aiohttp)
2028 ("python-appdirs" ,python-appdirs)
2029 ("python-async-timeout" ,python-async-timeout)
2030 ("python-configargparse" ,python-configargparse)
2031 ("python-mechanicalsoup" ,python-mechanicalsoup)
2032 ("python-protobuf" ,python-protobuf-3.6)
2033 ("python-readlike" ,python-readlike)
2034 ("python-reparser" ,python-reparser)
2035 ("python-requests" ,python-requests)
2036 ("python-urwid" ,python-urwid)))
2038 `(("python-httpretty" ,python-httpretty)
2039 ("python-pytest" ,python-pytest)))
2040 (home-page "https://hangups.readthedocs.io/")
2041 (synopsis "Instant messaging client for Google Hangouts")
2043 "Hangups is an instant messaging client for Google Hangouts. It includes
2044 both a Python library and a reference client with a text-based user interface.
2046 Hangups is implements a reverse-engineered version of Hangouts' proprietary,
2047 non-interoperable protocol, which allows it to support features like group
2048 messaging that aren’t available to clients that connect over XMPP.")
2049 (license license:expat)))
2051 (define-public telegram-purple
2053 (name "telegram-purple")
2055 (home-page "https://github.com/majn/telegram-purple")
2060 (commit (string-append "v" version))
2064 "0imbzhhq9qbj6gvkckrnjhls2vvmmy8db7l6gsd7lng2pbfcn522"))
2065 (modules '((guix build utils)))
2068 (substitute* "Makefile.in"
2069 ;; By default these two directories point to Pidgin's own
2071 (("^PLUGIN_DIR_PURPLE=.*")
2073 "exec_prefix := @exec_prefix@\n"
2074 "PLUGIN_DIR_PURPLE := @libdir@/purple-2\n"))
2075 (("^DATA_ROOT_DIR_PURPLE=.*")
2076 "DATA_ROOT_DIR_PURPLE := @datarootdir@\n")
2078 ;; Honor sysconfdir instead of trying to write to /etc.
2079 (("DESTDIR\\)/etc/telegram-purple")
2080 "DESTDIR)@sysconfdir@/telegram-purple"))
2082 (patches (search-patches "telegram-purple-adjust-test.patch"))
2083 (file-name (git-file-name name version))))
2084 (build-system gnu-build-system)
2086 `(("pkg-config" ,pkg-config)
2087 ("gettext" ,gettext-minimal)
2090 `(("pidgin" ,pidgin)
2091 ("libgcrypt" ,libgcrypt)
2092 ("libwebp" ,libwebp)
2098 (modify-phases %standard-phases
2099 ;; We're using release tag for repository checkout - let's prepare
2100 ;; header defining GIT_COMMIT manually instead of running git to
2101 ;; identify version which is being compiled. Git repository
2102 ;; is removed anyway and only source code is kept.
2103 (add-after 'unpack 'prepare-commit.h
2105 (with-output-to-file "./commit.h"
2108 (string-append "//generated by guix, use version instead of "
2110 "#ifndef GIT_COMMIT\n"
2111 "# define GIT_COMMIT \"v"
2115 (add-before 'configure 'set-SHELL-variables
2116 ;; Set these environment variables so that 'tgl/configure' uses the
2117 ;; right shell and not /bin/sh.
2119 (let ((bash (which "bash")))
2120 (setenv "SHELL" bash)
2121 (setenv "CONFIG_SHELL" bash)
2123 (synopsis "Telegram messaging support for Pidgin")
2125 "Telegram-purple is a plugin for Libpurple, the communication library
2126 used by the Pidgin instant messaging client, that adds support for the
2127 Telegram messenger.")
2129 ;; Code under tgl/ (the Telegram library) is LGPLv2.1+, but the plugin
2130 ;; itself is GPLv2+.
2131 (license license:gpl2+)))
2133 (define-public tdlib
2134 (let ((commit "278c7acdec83c5ac17d8e1ed0bb2cacbcea62460")
2139 (version (git-version version revision commit))
2143 (url "https://github.com/tdlib/td.git")
2147 "0zlzpl6fgszg18kwycyyyrnkm255dvc6fkq0b0y32m5wvwwl36cv"))
2148 (file-name (git-file-name name version))))
2149 (build-system cmake-build-system)
2153 (list "-DCMAKE_BUILD_TYPE=Release"
2154 "-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work.
2156 (modify-phases %standard-phases
2157 (add-after 'unpack 'remove-failing-tests
2159 (substitute* "test/CMakeLists.txt"
2160 ;; The test cases are compiled into a distinct binary
2161 ;; which uses mtproto.cpp to attempt to connect to
2162 ;; a remote server. Removing this file from the sources
2163 ;; list disables those specific test cases.
2164 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") ""))
2168 ("openssl" ,openssl)
2171 ("doxygen" ,doxygen)))
2172 (synopsis "Cross-platform library for building Telegram clients")
2173 (description "Tdlib is a cross-platform library for creating custom
2174 Telegram clients following the official Telegram API. It can be easily used
2175 from almost any programming language with a C-FFI and features first-class
2176 support for high performance Telegram Bot creation.")
2177 (home-page "https://core.telegram.org/tdlib")
2178 (license license:boost1.0))))
2180 ;;; messaging.scm ends here