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 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016 Nikita <nikita@n0.is>
7 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
10 ;;; Copyright © 2020 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>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages irc)
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix packages)
35 #:use-module (guix utils)
36 #:use-module (guix build-system cmake)
37 #:use-module (guix build-system glib-or-gtk)
38 #:use-module (guix build-system gnu)
39 #:use-module (guix build-system python)
40 #:use-module (guix build-system qt)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages admin)
43 #:use-module (gnu packages aspell)
44 #:use-module (gnu packages autogen)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages base)
47 #:use-module (gnu packages backup)
48 #:use-module (gnu packages check)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages curl)
51 #:use-module (gnu packages cyrus-sasl)
52 #:use-module (gnu packages databases)
53 #:use-module (gnu packages file)
54 #:use-module (gnu packages gettext)
55 #:use-module (gnu packages geo)
56 #:use-module (gnu packages glib)
57 #:use-module (gnu packages gnome)
58 #:use-module (gnu packages gnupg)
59 #:use-module (gnu packages gtk)
60 #:use-module (gnu packages guile)
61 #:use-module (gnu packages lua)
62 #:use-module (gnu packages lxqt)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages openldap)
65 #:use-module (gnu packages kde)
66 #:use-module (gnu packages kde-frameworks)
67 #:use-module (gnu packages password-utils)
68 #:use-module (gnu packages pcre)
69 #:use-module (gnu packages perl)
70 #:use-module (gnu packages pkg-config)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages python-crypto)
73 #:use-module (gnu packages python-xyz)
74 #:use-module (gnu packages regex)
75 #:use-module (gnu packages ruby)
76 #:use-module (gnu packages sqlite)
77 #:use-module (gnu packages qt)
78 #:use-module (gnu packages tcl)
79 #:use-module (gnu packages textutils)
80 #:use-module (gnu packages time)
81 #:use-module (gnu packages tls)
82 #:use-module (gnu packages web)
83 #:use-module (srfi srfi-1)
84 #:use-module (srfi srfi-26))
86 (define-public quassel
93 (uri (string-append "https://quassel-irc.org/pub/quassel-"
97 "0mg8jydc70vlylppzich26q4s40kr78r3ysfyjwisfvlg2byxvs8"))
98 (patches (search-patches "quassel-qt-514-compat.patch"))
99 (modules '((guix build utils)))
100 ;; We don't want to install the bundled inxi script.
103 (delete-file "data/scripts/inxi")
105 (build-system qt-build-system)
107 ;; The three binaries are not mutually exlusive, and are all built
109 '(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 6.1 MiB
110 ;;"-DWANT_CORE=OFF" ; 3.0 MiB
111 ;;"-DWANT_MONO=OFF" ; 7.6 MiB
112 "-DWITH_KDE=OFF" ; no to kde integration ...
113 "-DWITH_BUNDLED_ICONS=ON" ; so we install bundled icons
114 "-DWITH_OXYGEN_ICONS=ON" ; also the oxygen ones
115 "-DWITH_WEBENGINE=OFF") ; we don't depend on qtwebengine
117 (modify-phases %standard-phases
118 (add-after 'unpack 'patch-inxi-reference
119 (lambda* (#:key inputs #:allow-other-keys)
120 (let ((inxi (string-append (assoc-ref inputs "inxi") "/bin/inxi")))
121 (symlink inxi "data/scripts/inxi")
123 #:tests? #f)) ; no test target
125 `(("extra-cmake-modules" ,extra-cmake-modules)
126 ("pkg-config" ,pkg-config)
127 ("qttools" ,qttools)))
129 `(("inxi" ,inxi-minimal)
130 ("libdbusmenu-qt" ,libdbusmenu-qt)
133 ("qtmultimedia" ,qtmultimedia)
134 ("qtscript" ,qtscript)
136 ("snorenotify" ,snorenotify)
138 (home-page "https://quassel-irc.org/")
139 (synopsis "Distributed IRC client")
140 (description "Quassel is a distributed IRC client, meaning that one or more
141 clients can attach to and detach from the central core. It resembles the
142 popular combination of screen and a text-based IRC client such as WeeChat or
143 irssi, but graphical.")
144 (license (list license:gpl2 license:gpl3)))) ;; dual licensed
152 (uri (string-append "https://github.com/irssi/irssi/"
153 "releases/download/" version "/irssi-"
157 "17vninwcdfxw39xl2q55qircckckjk2xlvkvlwgj5lhlxppvyix6"))))
158 (build-system gnu-build-system)
161 (modify-phases %standard-phases
163 (lambda* (#:key inputs outputs #:allow-other-keys)
164 (let ((out (assoc-ref outputs "out")))
165 (setenv "CONFIG_SHELL" (which "bash"))
166 (invoke "./configure"
167 (string-append "--prefix=" out)
168 (string-append "--with-proxy")
169 (string-append "--with-socks")
170 (string-append "--with-bot")))))
171 (add-before 'check 'set-home
173 (setenv "HOME" (getcwd)))))))
180 `(("pkg-config" ,pkg-config)))
181 (home-page "https://irssi.org/")
182 (synopsis "Terminal-based IRC client")
184 "Irssi is a terminal based IRC client for UNIX systems. It also supports
185 SILC and ICB protocols via plugins.")
186 (license license:gpl2+)))
188 (define-public weechat
194 (uri (string-append "https://weechat.org/files/src/weechat-"
198 "1xx4fx7785yw3ml3k1z08h3qvrizvcypwl0j6jc7d7qim9sjjnm5"))))
199 (build-system cmake-build-system)
201 `(("gettext" ,gettext-minimal)
202 ("pkg-config" ,pkg-config)
204 ("cpputest" ,cpputest)))
209 ("libgcrypt" ,libgcrypt "out")
213 ;; Scripting language plug-ins.
221 (list "-DENABLE_PHP=OFF"
223 "-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
224 ;; Tests hang indefinitely on non-Intel platforms.
225 #:tests? ,(if (any (cute string-prefix? <> (or (%current-target-system)
229 (synopsis "Extensible chat client")
230 (description "WeeChat (Wee Enhanced Environment for Chat) is an
231 @dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast.
232 The client uses a curses frontend, and there are remote interfaces for Web,
233 Qt, Android, and Emacs.
235 Everything in WeeChat can be done with the keyboard, though it also supports
236 using a mouse. It is customizable and extensible with plugins and scripts.")
237 (home-page "https://www.weechat.org/")
238 (license license:gpl3)))
248 (url "https://github.com/SrainApp/srain")
250 (file-name (git-file-name name version))
252 (base32 "1vqjjsxzc4601dpc8lf9k25rp2c7sjab7l5a6cbfygpr8dqvm6vq"))))
254 `(#:tests? #f ;there are no tests
256 (modify-phases %standard-phases
257 (add-before 'install 'fix-permissions
258 ;; Make po folder writable for gettext to install translations.
260 (for-each make-file-writable
261 (find-files "po" "." #:directories? #t)))))))
262 (build-system glib-or-gtk-build-system)
264 `(("gettext" ,gettext-minimal)
265 ("glib:bin" ,glib "bin")
266 ("pkg-config" ,pkg-config)
267 ("python" ,python-wrapper)))
269 `(("glib-networking" ,glib-networking)
270 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
272 ("libconfig" ,libconfig)
273 ("libsecret" ,libsecret)
275 ("openssl" ,openssl)))
276 (home-page "https://srain.im")
277 (synopsis "Modern IRC client written in GTK")
279 "Srain is an IRC client written in GTK. It aims to be modern and easy to
280 use while still remaining useful to power users. It also has partial support
281 for the IRCv3 protocol.")
282 (license license:gpl3+)))
290 (uri (string-append "https://ircii.warped.com/"
291 name "-" version ".tar.gz"))
294 "04jczayv1vdn21fcf5zkfaa98sy7d6ydrv2sns2i67gvya2z28j3"))))
295 (build-system gnu-build-system)
296 ;; TODO: We should package a small socks4/5 library/server to configure
297 ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which
301 #:configure-flags (list
303 "--with-emacs-meta-keys"
304 (string-append "--with-openssl="
305 (assoc-ref %build-inputs "openssl")))
307 (modify-phases %standard-phases
308 (add-after 'unpack 'patch-bsdinstall-absolute-path-bins
309 (lambda* (#:key inputs #:allow-other-keys)
310 (substitute* "bsdinstall"
311 (("/bin/strip") "strip")
313 (("/bin/chmod") "chmod")
314 (("/etc/chown") "chown")
315 (("/bin/chgrp") "chgrp")
316 (("/bin/mkdir") "mkdir")
318 (("/bin/mv") "mv")))))))
320 `(("ncurses" ,ncurses)
321 ("openssl" ,openssl)))
323 `(("pkg-config" ,pkg-config)
325 (home-page "http://www.eterna.com.au/ircii/")
326 (synopsis "Terminal-based IRC and ICB client")
328 "ircII is a terminal based IRC and ICB client for UNIX systems.")
329 (license license:bsd-3)))
337 (uri (string-append "http://dl.suckless.org/tools/"
338 name "-" version ".tar.gz"))
341 "1lk8vjl7i8dcjh4jkg8h8bkapcbs465sy8g9c0chfqsywbmf3ndr"))))
342 (build-system gnu-build-system)
344 `(#:tests? #f ; no tests
345 #:make-flags (list (string-append "PREFIX=" %output)
348 (modify-phases %standard-phases
349 (delete 'configure)))) ; no configure
350 (home-page "https://tools.suckless.org/ii/")
351 (synopsis "FIFO and file system based IRC client")
353 "ii (Irc it) is a minimalist FIFO and file system based IRC client.")
354 (license license:expat)))
362 (uri (string-append "http://dl.suckless.org/tools/"
363 name "-" version ".tar.gz"))
366 "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc"))))
367 (build-system gnu-build-system)
369 `(#:tests? #f ; no tests
370 #:make-flags (list "CC=gcc"
371 (string-append "PREFIX=" %output))
373 (modify-phases %standard-phases
374 (delete 'configure)))) ; no configure
375 (home-page "https://tools.suckless.org/sic/")
376 (synopsis "Simple IRC client")
378 "sic is a simple IRC client, even more minimalistic than ii.")
379 (license license:expat)))
388 (url "https://github.com/mcpcpc/kirc")
390 (file-name (git-file-name name version))
392 (base32 "11pwbil44q7sm3mp1khgw8wmwln2n03f1qawlgmg168jzyxqrs16"))))
393 (build-system gnu-build-system)
395 `(#:tests? #f ; no tests
397 (list (string-append "CC=" ,(cc-for-target))
398 (string-append "PREFIX=" %output))
400 (modify-phases %standard-phases
401 (delete 'configure)))) ; No ./configure script
402 (synopsis "IRC client written in POSIX C99")
403 (description "Kirc is an Internet Relay Chat (IRC) client. It includes
404 support for Simple Authentication and Security Layer (SASL), the
405 client-to-client (CTCP) protocol, simple chat history logging, synchronous
406 message handling, multi-channel joining at server connection, full support for
407 all RFC 2812 commands, and customized color scheme definitions.")
408 (home-page "http://kirc.io/index.html")
409 (license license:expat)))
411 (define-public limnoria
414 (version "2019.11.22")
418 (uri (pypi-uri "limnoria" version))
420 (base32 "0853xk1ps3v6lkmfx50wv56vynnzpl84v66hxnhl8i34zl36kk3c"))))
421 (build-system python-build-system)
423 `(("python-pytz" ,python-pytz)
424 ("python-chardet" ,python-chardet)
425 ("python-dateutil" ,python-dateutil)
426 ("python-gnupg" ,python-gnupg)
427 ("python-feedparser" ,python-feedparser)
428 ("python-sqlalchemy" ,python-sqlalchemy)
429 ("python-socksipy-branch" ,python-socksipy-branch)
430 ("python-ecdsa" ,python-ecdsa)))
432 `(("python-mock" ,python-mock)))
433 ;; Despite the existence of a test folder there is no test phase.
434 ;; We need to package https://github.com/ProgVal/irctest and write
435 ;; our own testphase.
438 (home-page "https://github.com/ProgVal/Limnoria")
439 (synopsis "Modified version of Supybot (an IRC bot and framework)")
441 "Modified version of Supybot with Python 3 and IRCv3 support,
442 embedded web server, translations (fr, fi, it, hu, de), and many
443 other enhancements and bug fixes.")
444 (license license:bsd-3)))
452 (uri (string-append "http://ftp.epicsol.org/pub/"
453 "epic/EPIC5-PRODUCTION/"
454 name "-" version ".tar.xz"))
457 "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"))))
458 (build-system gnu-build-system)
460 `(#:test-target "test"
462 (modify-phases %standard-phases
463 (add-after 'unpack 'patch-perl
465 (substitute* "regress/crash-irc"
466 (("perl5") (which "perl")))
468 (add-after 'unpack 'patch-bsdinstall
469 ;; If we just remove /bin/ some part of the bsdinstall breaks.
470 ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which
471 ;; means if we leave /etc/ in, install fails.
473 (substitute* "bsdinstall"
474 (("/bin/strip") "strip")
476 (("/bin/chmod") "chmod")
477 (("/bin/chgrp") "chgrp")
478 (("/bin/mkdir") "mkdir")
484 (lambda* (#:key outputs #:allow-other-keys)
485 ;; The tarball uses a very old version of autconf. It does not
486 ;; understand extra flags like `--enable-fast-install', so
487 ;; we need to invoke it with just what it understands.
488 (let ((out (assoc-ref outputs "out")))
489 ;; 'configure' doesn't understand '--host'.
490 ,@(if (%current-target-system)
491 `((setenv "CHOST" ,(%current-target-system)))
493 (setenv "CONFIG_SHELL" (which "bash"))
494 (setenv "SHELL" (which "bash"))
495 (invoke "./configure"
496 (string-append "--prefix=" out)
497 "--with-ipv6" "--with-libarchive"
498 ;; We use libressl because openssl does not come
499 ;; with the lib/libssl.a which is needed for epic5.
500 ;; XXX: No matter which implementation is chosen,
501 ;; epic5 fails to connect to tls ports of roundrobin
502 ;; irc networks. This however is believed to be an
503 ;; protocol issue at epic5 related to ircd.
504 (string-append "--with-ssl="
505 (assoc-ref %build-inputs "libressl"))
506 (string-append "--with-tcl="
507 (assoc-ref %build-inputs "tcl")
508 "/lib/tclConfig.sh"))))))))
510 `(("libressl" ,libressl)
512 ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip files"
517 `(("pkg-config" ,pkg-config)))
518 (home-page "http://epicsol.org")
519 (synopsis "Epic5 IRC Client")
521 "EPIC is a IRC client that has been under active development for
522 over 20 years. It is stable and mature, and offers an excellent ircII
523 interface for those who are accustomed to the ircII way of doing things.")
524 (license (list license:bsd-3
527 ;; The epic license is equal to the standard three-clause
528 ;; BSD license except that you are not permitted to remove the
529 ;; "Redistribution is permitted" clause of the license if you
530 ;; distribute binaries.
531 (license:non-copyleft "http://epicsol.org/copyright")))))
533 (define-public inspircd
541 (url "https://github.com/inspircd/inspircd")
542 (commit (string-append "v" version))))
543 (file-name (git-file-name name version))
545 (base32 "1i30649dw84iscxa5as81g96f393mn1i883aq4za5ypdinr5x65g"))))
546 (build-system gnu-build-system)
548 `(#:configure-flags (map (lambda (module)
549 (string-append "--enable-extras=" module))
564 "m_sslrehashsignal.cpp"))
565 #:tests? #f ; Figure out later.
567 (modify-phases %standard-phases
568 (add-before 'configure 'module-configure
569 (lambda* (#:key configure-flags #:allow-other-keys)
570 (apply invoke "./configure"
574 (lambda* (#:key outputs #:allow-other-keys)
575 (let* ((out (assoc-ref outputs "out"))
576 (out-lib (string-append out "/lib/"))
577 (out-bin (string-append out "/bin/"))
578 (out-etc (string-append out "/etc/"))
580 (invoke "./configure"
581 (string-append "--prefix=" out-lib name)
582 (string-append "--binary-dir=" out-bin)
583 (string-append "--module-dir=" out-lib name "/modules/")
584 (string-append "--config-dir=" out-etc name)))
587 `(("pkg-config" ,pkg-config)))
591 ("libmaxminddb" ,libmaxminddb)
592 ("mbedtls-apache" ,mbedtls-apache)
594 ("openldap" ,openldap)
598 ("postgresql" ,postgresql)
602 (synopsis "Modular IRC server written in C++")
603 (description "InspIRCd is a modular Internet Relay Chat
604 server written in C++ for Unix-like operating systems.")
605 (home-page "https://www.inspircd.org/")
606 (license license:gpl2)))