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 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016 ng0 <ng0@n0.is>
7 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages irc)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix download)
28 #:use-module (guix packages)
29 #:use-module (guix build-system cmake)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix build-system python)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages admin)
34 #:use-module (gnu packages aspell)
35 #:use-module (gnu packages autogen)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages base)
38 #:use-module (gnu packages backup)
39 #:use-module (gnu packages check)
40 #:use-module (gnu packages compression)
41 #:use-module (gnu packages curl)
42 #:use-module (gnu packages cyrus-sasl)
43 #:use-module (gnu packages databases)
44 #:use-module (gnu packages file)
45 #:use-module (gnu packages gettext)
46 #:use-module (gnu packages glib)
47 #:use-module (gnu packages gnupg)
48 #:use-module (gnu packages guile)
49 #:use-module (gnu packages lua)
50 #:use-module (gnu packages ncurses)
51 #:use-module (gnu packages kde)
52 #:use-module (gnu packages kde-frameworks)
53 #:use-module (gnu packages perl)
54 #:use-module (gnu packages pkg-config)
55 #:use-module (gnu packages python)
56 #:use-module (gnu packages python-crypto)
57 #:use-module (gnu packages python-xyz)
58 #:use-module (gnu packages ruby)
59 #:use-module (gnu packages qt)
60 #:use-module (gnu packages tcl)
61 #:use-module (gnu packages time)
62 #:use-module (gnu packages tls)
63 #:use-module (gnu packages web)
64 #:use-module (srfi srfi-1)
65 #:use-module (srfi srfi-26))
67 (define-public quassel
74 (uri (string-append "https://quassel-irc.org/pub/quassel-"
78 "0mg8jydc70vlylppzich26q4s40kr78r3ysfyjwisfvlg2byxvs8"))
79 (modules '((guix build utils)))
80 ;; We don't want to install the bundled scripts.
83 (delete-file-recursively "data/scripts")
84 (substitute* "data/CMakeLists.txt"
85 (("NOT WIN32") "WIN32"))
87 (build-system cmake-build-system)
89 ;; The three binaries are not mutually exlusive, and are all built
91 '(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 6.1 MiB
92 ;;"-DWANT_CORE=OFF" ; 3.0 MiB
93 ;;"-DWANT_MONO=OFF" ; 7.6 MiB
94 "-DWITH_KDE=OFF" ; no to kde integration ...
95 "-DWITH_BUNDLED_ICONS=ON" ; so we install bundled icons
96 "-DWITH_OXYGEN_ICONS=ON" ; also the oxygen ones
97 "-DWITH_WEBENGINE=OFF") ; we don't depend on qtwebengine
99 (modify-phases %standard-phases
100 (add-after 'unpack 'patch-inxi-reference
101 (lambda* (#:key inputs #:allow-other-keys)
102 (let ((inxi (string-append (assoc-ref inputs "inxi") "/bin/inxi")))
103 (substitute* "src/common/aliasmanager.cpp"
104 ((" inxi ") (string-append " " inxi " ")))
106 #:tests? #f)) ; no test target
108 `(("extra-cmake-modules" ,extra-cmake-modules)
109 ("pkg-config" ,pkg-config)
110 ("qttools" ,qttools)))
112 `(("inxi" ,inxi-minimal)
115 ("qtmultimedia" ,qtmultimedia)
116 ("qtscript" ,qtscript)
117 ("snorenotify" ,snorenotify)
119 (home-page "https://quassel-irc.org/")
120 (synopsis "Distributed IRC client")
121 (description "Quassel is a distributed IRC client, meaning that one or more
122 clients can attach to and detach from the central core. It resembles the
123 popular combination of screen and a text-based IRC client such as WeeChat or
124 irssi, but graphical.")
125 (license (list license:gpl2 license:gpl3)))) ;; dual licensed
133 (uri (string-append "https://github.com/irssi/irssi/"
134 "releases/download/" version "/irssi-"
138 "0jq8zjdhdjxkjbfl4g4nfr1ninyfxffa27lm8vcyrihhhkrn65yf"))))
139 (build-system gnu-build-system)
142 (modify-phases %standard-phases
144 (lambda* (#:key inputs outputs #:allow-other-keys)
145 (let ((out (assoc-ref outputs "out")))
146 (setenv "CONFIG_SHELL" (which "bash"))
147 (invoke "./configure"
148 (string-append "--prefix=" out)
149 (string-append "--with-proxy")
150 (string-append "--with-socks")
151 (string-append "--with-bot"))))))))
158 `(("pkg-config" ,pkg-config)))
159 (home-page "https://irssi.org/")
160 (synopsis "Terminal-based IRC client")
162 "Irssi is a terminal based IRC client for UNIX systems. It also supports
163 SILC and ICB protocols via plugins.")
164 (license license:gpl2+)))
166 (define-public weechat
172 (uri (string-append "https://weechat.org/files/src/weechat-"
176 "0j2iflnfvv31q2l9r67r8aj3ipggqfm2r2dpy7pvdpxgwwq337ps"))))
177 (build-system cmake-build-system)
179 `(("gettext" ,gettext-minimal)
180 ("pkg-config" ,pkg-config)
182 ("cpputest" ,cpputest)))
183 (inputs `(("ncurses" ,ncurses)
184 ("libgcrypt" ,libgcrypt "out")
190 ;; Scripting language plug-ins.
198 (list "-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
199 ;; Tests hang indefinately on non-Intel platforms.
200 #:tests? ,(if (any (cute string-prefix? <> (or (%current-target-system)
205 (modify-phases %standard-phases
206 (add-after 'unpack 'disable-failing-tests
207 ;; For reasons best left to the imagination, CppUTest cannot skip
208 ;; more than one single test... Resort to manual patching instead.
209 ;; See <https://cpputest.github.io/manual.html#command_line>.
211 ;; Don't test plugin support for languages we don't enable.
212 (substitute* "tests/unit/test-plugins.cpp"
213 ((".*\\$\\{plugin.name\\} == (javascript|php|ruby)" all)
214 (string-append "// SKIP" all)))
215 (substitute* "tests/scripts/test-scripts.cpp"
216 ((".*\\{ \"(javascript|php|ruby)\", " all)
217 (string-append "// SKIP" all)))
219 (synopsis "Extensible chat client")
220 (description "WeeChat (Wee Enhanced Environment for Chat) is an
221 @dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast.
222 The client uses a curses frontend, and there are remote interfaces for Web,
223 Qt, Android, and Emacs.
225 Everything in WeeChat can be done with the keyboard, though it also supports
226 using a mouse. It is customizable and extensible with plugins and scripts.")
227 (home-page "https://www.weechat.org/")
228 (license license:gpl3)))
236 (uri (string-append "https://ircii.warped.com/"
237 name "-" version ".tar.gz"))
240 "178dc279f5j894qvp96dzz7c0jpryqlcqw5g0dc9yaxg9kgw1lqm"))))
241 (build-system gnu-build-system)
242 ;; TODO: We should package a small socks4/5 library/server to configure
243 ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which
247 #:configure-flags (list
249 "--with-emacs-meta-keys"
250 (string-append "--with-openssl="
251 (assoc-ref %build-inputs "openssl")))
253 (modify-phases %standard-phases
254 (add-after 'unpack 'patch-bsdinstall-absolute-path-bins
255 (lambda* (#:key inputs #:allow-other-keys)
256 (substitute* "bsdinstall"
257 (("/bin/strip") "strip")
259 (("/bin/chmod") "chmod")
260 (("/etc/chown") "chown")
261 (("/bin/chgrp") "chgrp")
262 (("/bin/mkdir") "mkdir")
264 (("/bin/mv") "mv")))))))
266 `(("ncurses" ,ncurses)
267 ("openssl" ,openssl)))
269 `(("pkg-config" ,pkg-config)
271 (home-page "http://www.eterna.com.au/ircii/")
272 (synopsis "Terminal-based IRC and ICB client")
274 "ircII is a terminal based IRC and ICB client for UNIX systems.")
275 (license license:bsd-3)))
283 (uri (string-append "http://dl.suckless.org/tools/"
284 name "-" version ".tar.gz"))
287 "1lk8vjl7i8dcjh4jkg8h8bkapcbs465sy8g9c0chfqsywbmf3ndr"))))
288 (build-system gnu-build-system)
290 `(#:tests? #f ; no tests
291 #:make-flags (list (string-append "PREFIX=" %output)
294 (modify-phases %standard-phases
295 (delete 'configure)))) ; no configure
296 (home-page "https://tools.suckless.org/ii/")
297 (synopsis "FIFO and file system based IRC client")
299 "ii (Irc it) is a minimalist FIFO and file system based IRC client.")
300 (license license:expat)))
308 (uri (string-append "http://dl.suckless.org/tools/"
309 name "-" version ".tar.gz"))
312 "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc"))))
313 (build-system gnu-build-system)
315 `(#:tests? #f ; no tests
316 #:make-flags (list "CC=gcc"
317 (string-append "PREFIX=" %output))
319 (modify-phases %standard-phases
320 (delete 'configure)))) ; no configure
321 (home-page "https://tools.suckless.org/sic/")
322 (synopsis "Simple IRC client")
324 "sic is a simple IRC client, even more minimalistic than ii.")
325 (license license:expat)))
327 (define-public limnoria
330 (version "2017.10.01")
334 (uri (pypi-uri "limnoria" version))
337 "1hd8h257x7a0s4rvb4aqvfi77qfcyv6jaz70nndg7y6p4yhvjmy6"))))
338 (build-system python-build-system)
340 `(("python-pytz" ,python-pytz)
341 ("python-chardet" ,python-chardet)
342 ("python-dateutil" ,python-dateutil)
343 ("python-gnupg" ,python-gnupg)
344 ("python-feedparser" ,python-feedparser)
345 ("python-sqlalchemy" ,python-sqlalchemy)
346 ("python-socksipy-branch" ,python-socksipy-branch)
347 ("python-ecdsa" ,python-ecdsa)))
349 `(("python-mock" ,python-mock)))
350 ;; Despite the existence of a test folder there is no test phase.
351 ;; We need to package https://github.com/ProgVal/irctest and write
352 ;; our own testphase.
355 (home-page "https://github.com/ProgVal/Limnoria")
356 (synopsis "Modified version of Supybot (an IRC bot and framework)")
358 "Modified version of Supybot with Python 3 and IRCv3 support,
359 embedded web server, translations (fr, fi, it, hu, de), and many
360 other enhancements and bug fixes.")
361 (license license:bsd-3)))
369 (uri (string-append "http://ftp.epicsol.org/pub/"
370 "epic/EPIC5-PRODUCTION/"
371 name "-" version ".tar.xz"))
374 "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"))))
375 (build-system gnu-build-system)
377 `(#:test-target "test"
379 (modify-phases %standard-phases
380 (add-after 'unpack 'patch-perl
382 (substitute* "regress/crash-irc"
383 (("perl5") (which "perl")))
385 (add-after 'unpack 'patch-bsdinstall
386 ;; If we just remove /bin/ some part of the bsdinstall breaks.
387 ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which
388 ;; means if we leave /etc/ in, install fails.
390 (substitute* "bsdinstall"
391 (("/bin/strip") "strip")
393 (("/bin/chmod") "chmod")
394 (("/bin/chgrp") "chgrp")
395 (("/bin/mkdir") "mkdir")
401 (lambda* (#:key outputs #:allow-other-keys)
402 ;; The tarball uses a very old version of autconf. It does not
403 ;; understand extra flags like `--enable-fast-install', so
404 ;; we need to invoke it with just what it understands.
405 (let ((out (assoc-ref outputs "out")))
406 ;; 'configure' doesn't understand '--host'.
407 ,@(if (%current-target-system)
408 `((setenv "CHOST" ,(%current-target-system)))
410 (setenv "CONFIG_SHELL" (which "bash"))
411 (setenv "SHELL" (which "bash"))
412 (invoke "./configure"
413 (string-append "--prefix=" out)
414 "--with-ipv6" "--with-libarchive"
415 ;; We use libressl because openssl does not come
416 ;; with the lib/libssl.a which is needed for epic5.
417 ;; XXX: No matter which implementation is chosen,
418 ;; epic5 fails to connect to tls ports of roundrobin
419 ;; irc networks. This however is believed to be an
420 ;; protocol issue at epic5 related to ircd.
421 (string-append "--with-ssl="
422 (assoc-ref %build-inputs "libressl"))
423 (string-append "--with-tcl="
424 (assoc-ref %build-inputs "tcl")
425 "/lib/tclConfig.sh"))))))))
427 `(("libressl" ,libressl)
429 ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip files"
434 `(("pkg-config" ,pkg-config)))
435 (home-page "http://epicsol.org")
436 (synopsis "Epic5 IRC Client")
438 "EPIC is a IRC client that has been under active development for
439 over 20 years. It is stable and mature, and offers an excellent ircII
440 interface for those who are accustomed to the ircII way of doing things.")
441 (license (list license:bsd-3
444 ;; The epic license is equal to the standard three-clause
445 ;; BSD license except that you are not permitted to remove the
446 ;; "Redistribution is permitted" clause of the license if you
447 ;; distribute binaries.
448 (license:non-copyleft "http://epicsol.org/copyright")))))