1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net>
4 ;;; Copyright © 2015, 2017 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016 Nikita <nikita@n0.is>
7 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2017–2022 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
10 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
11 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
12 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
13 ;;; Copyright © 2021 WinterHound <winterhound@yandex.com>
14 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages irc)
32 #:use-module (guix gexp)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix utils)
37 #:use-module (guix packages)
38 #:use-module (guix utils)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system meson)
42 #:use-module (guix build-system python)
43 #:use-module (guix build-system qt)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages admin)
46 #:use-module (gnu packages aspell)
47 #:use-module (gnu packages autogen)
48 #:use-module (gnu packages autotools)
49 #:use-module (gnu packages base)
50 #:use-module (gnu packages backup)
51 #:use-module (gnu packages boost)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages code)
54 #:use-module (gnu packages compression)
55 #:use-module (gnu packages curl)
56 #:use-module (gnu packages cyrus-sasl)
57 #:use-module (gnu packages databases)
58 #:use-module (gnu packages file)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages geo)
61 #:use-module (gnu packages glib)
62 #:use-module (gnu packages gnome)
63 #:use-module (gnu packages gnupg)
64 #:use-module (gnu packages gtk)
65 #:use-module (gnu packages guile)
66 #:use-module (gnu packages lua)
67 #:use-module (gnu packages lxqt)
68 #:use-module (gnu packages ncurses)
69 #:use-module (gnu packages openldap)
70 #:use-module (gnu packages kde)
71 #:use-module (gnu packages kde-frameworks)
72 #:use-module (gnu packages password-utils)
73 #:use-module (gnu packages pcre)
74 #:use-module (gnu packages perl)
75 #:use-module (gnu packages pkg-config)
76 #:use-module (gnu packages python)
77 #:use-module (gnu packages python-crypto)
78 #:use-module (gnu packages python-xyz)
79 #:use-module (gnu packages regex)
80 #:use-module (gnu packages ruby)
81 #:use-module (gnu packages sphinx)
82 #:use-module (gnu packages sqlite)
83 #:use-module (gnu packages qt)
84 #:use-module (gnu packages tcl)
85 #:use-module (gnu packages textutils)
86 #:use-module (gnu packages time)
87 #:use-module (gnu packages tls)
88 #:use-module (gnu packages web)
89 #:use-module (srfi srfi-1)
90 #:use-module (srfi srfi-26))
92 (define-public quassel
99 (uri (string-append "https://quassel-irc.org/pub/quassel-"
103 "042fzssydvv35jjknziph8iyyjsyrsb2hp3d0ix0bqbagbrpf1q9"))
104 (modules '((guix build utils)))
105 ;; We don't want to install the bundled inxi script.
108 (delete-file "data/scripts/inxi")))))
109 (build-system qt-build-system)
111 ;; The three binaries are not mutually exlusive, and are all built
113 '(#:configure-flags '("-DBUILD_TESTING=ON"
114 ;;"-DWANT_QTCLIENT=OFF"
118 "-DWITH_BUNDLED_ICONS=ON"
119 "-DWITH_OXYGEN_ICONS=ON"
120 ;; This disables link previews.
121 "-DWITH_WEBENGINE=OFF")
123 (modify-phases %standard-phases
124 (add-after 'unpack 'patch-inxi-reference
125 (lambda* (#:key inputs #:allow-other-keys)
126 (let ((inxi (search-input-file inputs "/bin/inxi")))
127 (symlink inxi "data/scripts/inxi")))))))
129 (list extra-cmake-modules pkg-config qttools))
143 (home-page "https://quassel-irc.org/")
144 (synopsis "Distributed IRC client")
145 (description "Quassel is a distributed IRC client, meaning that one or more
146 clients can attach to and detach from the central core. It resembles the
147 popular combination of screen and a text-based IRC client such as WeeChat or
148 irssi, but graphical.")
149 (license (list license:gpl2 license:gpl3)))) ;; dual licensed
157 (uri (string-append "https://github.com/irssi/irssi/"
158 "releases/download/" version "/irssi-"
162 "17vninwcdfxw39xl2q55qircckckjk2xlvkvlwgj5lhlxppvyix6"))))
163 (build-system gnu-build-system)
166 (modify-phases %standard-phases
168 (lambda* (#:key inputs outputs #:allow-other-keys)
169 (let ((out (assoc-ref outputs "out")))
170 (setenv "CONFIG_SHELL" (which "bash"))
171 (invoke "./configure"
172 (string-append "--prefix=" out)
173 (string-append "--enable-true-color")
174 (string-append "--with-proxy")
175 (string-append "--with-socks")
176 (string-append "--with-bot")))))
177 (add-before 'check 'set-home
179 (setenv "HOME" (getcwd)))))))
181 (list glib ncurses openssl perl utf8proc))
184 (home-page "https://irssi.org/")
185 (synopsis "Terminal-based IRC client")
187 "Irssi is a terminal based IRC client for UNIX systems. It also supports
188 SILC and ICB protocols via plugins.")
189 (license license:gpl2+)))
191 (define-public weechat
197 (uri (string-append "https://weechat.org/files/src/weechat-"
201 "0k5rgdy0c4dnxvsqjzyrr5czz1lmfk1vrsqkkvj8v24y0b3xrlvw"))))
202 (build-system cmake-build-system)
203 (outputs '("out" "doc"))
205 `(("gettext-minimal" ,gettext-minimal)
206 ("pkg-config" ,pkg-config)
207 ,@(if (or (target-x86-64?)
209 `(("ruby-asciidoctor" ,ruby-asciidoctor))
212 ("cpputest" ,cpputest)))
220 ;; Scripting language plug-ins.
229 (list "-DENABLE_PHP=OFF"
230 ,@(if (or (target-x86-64?)
235 "-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
237 (modify-phases %standard-phases
238 ,@(if (or (target-x86-64?)
240 '((add-after 'install 'move-doc
241 (lambda* (#:key outputs #:allow-other-keys)
242 (let* ((out (assoc-ref outputs "out"))
243 (doc (assoc-ref outputs "doc"))
244 (from (string-append out "/share/doc/weechat"))
245 (to (string-append doc "/share/doc/weechat")))
246 (mkdir-p (string-append doc "/share/doc"))
247 (rename-file from to)))))
249 (synopsis "Extensible chat client")
250 (description "WeeChat (Wee Enhanced Environment for Chat) is an
251 @dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast.
252 The client uses a curses frontend, and there are remote interfaces for Web,
253 Qt, Android, and Emacs.
255 Everything in WeeChat can be done with the keyboard, though it also supports
256 using a mouse. It is customizable and extensible with plugins and scripts.")
257 (home-page "https://weechat.org/")
258 (license license:gpl3)))
268 (url "https://github.com/SrainApp/srain")
270 (file-name (git-file-name name version))
272 (base32 "16nsxicixp7194bkiiyj7zrg05lhcp0xblqsbv6dq1lxd5wd3i96"))))
273 (build-system meson-build-system)
275 `(#:tests? #f ;there are no tests
278 `(("gettext" ,gettext-minimal)
279 ("glib:bin" ,glib "bin")
280 ("pkg-config" ,pkg-config)
281 ("python" ,python-wrapper)
282 ("python-sphinx" ,python-sphinx)))
284 (list glib-networking
285 gsettings-desktop-schemas
291 (home-page "https://srain.im")
292 (synopsis "Modern IRC client written in GTK")
294 "Srain is an IRC client written in GTK. It aims to be modern and easy to
295 use while still remaining useful to power users. It also has partial support
296 for the IRCv3 protocol.")
297 (license license:gpl3+)))
305 (uri (string-append "https://ircii.warped.com/"
306 name "-" version ".tar.gz"))
309 "04jczayv1vdn21fcf5zkfaa98sy7d6ydrv2sns2i67gvya2z28j3"))))
310 (build-system gnu-build-system)
311 ;; TODO: We should package a small socks4/5 library/server to configure
312 ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which
316 #:configure-flags (list
318 "--with-emacs-meta-keys"
319 (string-append "--with-openssl="
320 (assoc-ref %build-inputs "openssl")))
322 (modify-phases %standard-phases
323 (add-after 'unpack 'patch-bsdinstall-absolute-path-bins
324 (lambda* (#:key inputs #:allow-other-keys)
325 (substitute* "bsdinstall"
326 (("/bin/strip") "strip")
328 (("/bin/chmod") "chmod")
329 (("/etc/chown") "chown")
330 (("/bin/chgrp") "chgrp")
331 (("/bin/mkdir") "mkdir")
333 (("/bin/mv") "mv")))))))
335 (list ncurses openssl))
337 (list pkg-config perl))
338 (home-page "http://www.eterna.com.au/ircii/")
339 (synopsis "Terminal-based IRC and ICB client")
341 "ircII is a terminal based IRC and ICB client for UNIX systems.")
342 (license license:bsd-3)))
344 (define-public catgirl
350 (uri (string-append "https://git.causal.agency/catgirl/snapshot/"
351 name "-" version ".tar.gz"))
354 "0pci8crcgm33zb58y7ky2aydzyqsirj8ri8ik1zdlz6npadbjj9h"))))
355 (build-system gnu-build-system)
357 `(#:tests? #f ; no tests
358 #:make-flags (list (string-append "PREFIX=" %output)
359 ,(string-append "CC=" (cc-for-target)))))
361 (list universal-ctags pkg-config))
363 (list libressl ncurses))
364 (home-page "https://git.causal.agency/catgirl")
365 (synopsis "TLS-only terminal IRC client")
367 "@command{catgirl} is a TLS-only terminal IRC client.
369 Notable features include:
371 @item Tab complete: most recently seen or mentioned nicks are completed first.
372 Commas are inserted between multiple nicks.
373 @item Prompt: the prompt clearly shows whether input will be interpreted as a
374 command or sent as a message.
375 @item Split scroll: keeps the latest messages in view while scrolling.
376 @item URL detection: recent URLs from a particular user or matching a
377 substring can be opened or copied.
378 @item Nick coloring: color generation based on usernames remains stable across
379 nick changes. Mentions of users in messages are colored.
380 @item Topic diffing: the modified portion of a channel topic change is
383 (license license:gpl3+)))
391 (uri (string-append "http://dl.suckless.org/tools/"
392 name "-" version ".tar.gz"))
395 "05wcaszm9hap5gqf58bciqm3ad1kfgp976fs3fsn3ll3nliv6345"))))
396 (build-system gnu-build-system)
398 `(#:tests? #f ; no tests
399 #:make-flags (list (string-append "PREFIX=" %output)
400 ,(string-append "CC=" (cc-for-target)))
402 (modify-phases %standard-phases
403 (delete 'configure)))) ; no configure
404 (home-page "https://tools.suckless.org/ii/")
405 (synopsis "FIFO and file system based IRC client")
407 "ii (Irc it) is a minimalist FIFO and file system based IRC client.")
408 (license license:expat)))
416 (uri (string-append "http://dl.suckless.org/tools/"
417 name "-" version ".tar.gz"))
420 "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc"))))
421 (build-system gnu-build-system)
423 `(#:tests? #f ; no tests
424 #:make-flags (list ,(string-append "CC=" (cc-for-target))
425 (string-append "PREFIX=" %output))
427 (modify-phases %standard-phases
428 (delete 'configure)))) ; no configure
429 (home-page "https://tools.suckless.org/sic/")
430 (synopsis "Simple IRC client")
432 "sic is a simple IRC client, even more minimalistic than ii.")
433 (license license:expat)))
442 (url "https://github.com/mcpcpc/kirc")
444 (file-name (git-file-name name version))
446 (base32 "0ahmfxhgcvnlgmxxbv9vga5x6krab1n7qq55ygj7hj3x7s7ra419"))))
447 (build-system gnu-build-system)
449 `(#:tests? #f ; no tests
451 (list (string-append "CC=" ,(cc-for-target))
452 (string-append "PREFIX=" %output))
454 (modify-phases %standard-phases
455 (delete 'configure)))) ; No ./configure script
456 (synopsis "IRC client written in POSIX C99")
457 (description "Kirc is an Internet Relay Chat (IRC) client. It includes
458 support for Simple Authentication and Security Layer (SASL), the
459 client-to-client (CTCP) protocol, simple chat history logging, synchronous
460 message handling, multi-channel joining at server connection, full support for
461 all RFC 2812 commands, and customized color scheme definitions.")
462 (home-page "http://kirc.io/index.html")
463 (license license:expat)))
465 (define-public limnoria
468 (version "2019.11.22")
472 (uri (pypi-uri "limnoria" version))
474 (base32 "0853xk1ps3v6lkmfx50wv56vynnzpl84v66hxnhl8i34zl36kk3c"))))
475 (build-system python-build-system)
483 python-socksipy-branch
487 ;; Despite the existence of a test folder there is no test phase.
488 ;; We need to package https://github.com/ProgVal/irctest and write
489 ;; our own testphase.
492 (home-page "https://github.com/ProgVal/Limnoria")
493 (synopsis "Modified version of Supybot (an IRC bot and framework)")
495 "Modified version of Supybot with Python 3 and IRCv3 support,
496 embedded web server, translations (fr, fi, it, hu, de), and many
497 other enhancements and bug fixes.")
498 (license license:bsd-3)))
506 (uri (string-append "http://ftp.epicsol.org/pub/"
507 "epic/EPIC5-PRODUCTION/"
508 name "-" version ".tar.xz"))
511 "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"))))
512 (build-system gnu-build-system)
514 `(#:test-target "test"
516 (modify-phases %standard-phases
517 (add-after 'unpack 'patch-perl
519 (substitute* "regress/crash-irc"
520 (("perl5") (which "perl")))
522 (add-after 'unpack 'patch-bsdinstall
523 ;; If we just remove /bin/ some part of the bsdinstall breaks.
524 ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which
525 ;; means if we leave /etc/ in, install fails.
527 (substitute* "bsdinstall"
528 (("/bin/strip") "strip")
530 (("/bin/chmod") "chmod")
531 (("/bin/chgrp") "chgrp")
532 (("/bin/mkdir") "mkdir")
538 (lambda* (#:key outputs #:allow-other-keys)
539 ;; The tarball uses a very old version of autconf. It does not
540 ;; understand extra flags like `--enable-fast-install', so
541 ;; we need to invoke it with just what it understands.
542 (let ((out (assoc-ref outputs "out")))
543 ;; 'configure' doesn't understand '--host'.
544 ,@(if (%current-target-system)
545 `((setenv "CHOST" ,(%current-target-system)))
547 (setenv "CONFIG_SHELL" (which "bash"))
548 (setenv "SHELL" (which "bash"))
549 (invoke "./configure"
550 (string-append "--prefix=" out)
551 "--with-ipv6" "--with-libarchive"
552 ;; We use libressl because openssl does not come
553 ;; with the lib/libssl.a which is needed for epic5.
554 ;; XXX: No matter which implementation is chosen,
555 ;; epic5 fails to connect to tls ports of roundrobin
556 ;; irc networks. This however is believed to be an
557 ;; protocol issue at epic5 related to ircd.
558 (string-append "--with-ssl="
559 (assoc-ref %build-inputs "libressl"))
560 (string-append "--with-tcl="
561 (assoc-ref %build-inputs "tcl")
562 "/lib/tclConfig.sh"))))))))
566 libarchive ; CHANGELOG: "Support for loading zip files"
572 (home-page "http://epicsol.org")
573 (synopsis "Epic5 IRC Client")
575 "EPIC is a IRC client that has been under active development for
576 over 20 years. It is stable and mature, and offers an excellent ircII
577 interface for those who are accustomed to the ircII way of doing things.")
578 (license (list license:bsd-3
581 ;; The epic license is equal to the standard three-clause
582 ;; BSD license except that you are not permitted to remove the
583 ;; "Redistribution is permitted" clause of the license if you
584 ;; distribute binaries.
585 (license:non-copyleft "http://epicsol.org/copyright")))))
587 (define-public litterbox
594 (uri (string-append "https://git.causal.agency/litterbox/snapshot/litterbox-"
597 (base32 "0ll5d18slngdg2qhaxkvrcq2p1admh0h7sr06wx8347ka0vvrgjl"))))
598 (build-system gnu-build-system)
600 `(#:tests? #f ; There are no tests.
603 (string-append "CC=" ,(cc-for-target))
604 (string-append "PREFIX=" %output))))
606 (list pkg-config universal-ctags))
608 (list libressl sqlite))
609 (home-page "https://code.causal.agency/june/litterbox")
610 (synopsis "TLS-only IRC logger")
612 "@command{litterbox} is a TLS-only IRC logger. It logs
613 events from IRC in a SQLite database, indexing messages for full-text
614 search. It is intended for use with the IRC bouncer @command{pounce},
615 but can also be used independently as a logging bot.")
616 (license license:gpl3+)))
618 (define-public inspircd
626 (url "https://github.com/inspircd/inspircd")
627 (commit (string-append "v" version))))
628 (file-name (git-file-name name version))
630 (base32 "0xlfs269iaw7dfryzl6vjzqsn2g4nqh6kpf5xfgk3zbjhqaczknx"))))
631 (build-system gnu-build-system)
633 (list #:configure-flags
634 #~(map (lambda (module)
635 (string-append "--enable-extras=" module))
650 "m_sslrehashsignal.cpp"))
651 #:tests? #f ; XXX figure out later
653 #~(modify-phases %standard-phases
654 (add-before 'configure 'module-configure
655 (lambda* (#:key configure-flags #:allow-other-keys)
656 (apply invoke "./configure"
660 (let ((lib (string-append #$output "/lib/"))
661 (bin (string-append #$output "/bin/"))
662 (etc (string-append #$output "/etc/"))
664 (invoke "./configure"
665 (string-append "--prefix=" lib name)
666 (string-append "--binary-dir=" bin)
667 (string-append "--module-dir=" lib name "/modules/")
668 (string-append "--config-dir=" etc name))))))))
685 (synopsis "Modular IRC server written in C++")
686 (description "InspIRCd is a modular Internet Relay Chat
687 server written in C++ for Unix-like operating systems.")
688 (home-page "https://www.inspircd.org/")
689 (license license:gpl2)))