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 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016 ng0 <ng0@infotropique.org>
7 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2017, 2018 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 aspell)
34 #:use-module (gnu packages autogen)
35 #:use-module (gnu packages autotools)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages backup)
38 #:use-module (gnu packages check)
39 #:use-module (gnu packages compression)
40 #:use-module (gnu packages curl)
41 #:use-module (gnu packages cyrus-sasl)
42 #:use-module (gnu packages databases)
43 #:use-module (gnu packages file)
44 #:use-module (gnu packages gettext)
45 #:use-module (gnu packages glib)
46 #:use-module (gnu packages gnupg)
47 #:use-module (gnu packages guile)
48 #:use-module (gnu packages lua)
49 #:use-module (gnu packages ncurses)
50 #:use-module (gnu packages kde)
51 #:use-module (gnu packages kde-frameworks)
52 #:use-module (gnu packages perl)
53 #:use-module (gnu packages pkg-config)
54 #:use-module (gnu packages python)
55 #:use-module (gnu packages python-crypto)
56 #:use-module (gnu packages ruby)
57 #:use-module (gnu packages qt)
58 #:use-module (gnu packages tcl)
59 #:use-module (gnu packages time)
60 #:use-module (gnu packages tls)
61 #:use-module (gnu packages web)
62 #:use-module (srfi srfi-1)
63 #:use-module (srfi srfi-26))
65 (define-public quassel
72 (uri (string-append "http://quassel-irc.org/pub/quassel-"
74 (patches (search-patches "quassel-fix-tls-check.patch"))
77 "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))
78 (modules '((guix build utils)))
79 ;; We don't want to install the bundles scripts
82 (delete-file-recursively "data/scripts")
83 (substitute* "data/CMakeLists.txt"
84 (("NOT WIN32") "WIN32"))
86 (build-system cmake-build-system)
88 ;; The three binaries are not mutually exlusive, and are all built
90 '(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 5.2 MiB
91 ;;"-DWANT_CORE=OFF" ; 2.4 MiB
92 ;;"-DWANT_MONO=OFF" ; 6.4 MiB
93 "-DUSE_QT5=ON" ; default is qt4
94 "-DWITH_KDE=OFF" ; no to kde integration ...
95 "-DWITH_OXYGEN=ON" ; therefore we install bundled icons
96 "-DWITH_WEBKIT=OFF") ; qtwebkit isn't packaged
97 #:tests? #f)) ; no test target
99 `(("extra-cmake-modules" ,extra-cmake-modules)
100 ("pkg-config" ,pkg-config)
101 ("qttools" ,qttools)))
105 ("qtscript" ,qtscript)
106 ("snorenotify" ,snorenotify)
108 (home-page "http://quassel-irc.org/")
109 (synopsis "Distributed IRC client")
110 (description "Quassel is a distributed IRC client, meaning that one or more
111 clients can attach to and detach from the central core. It resembles the
112 popular combination of screen and a text-based IRC client such as WeeChat or
113 irssi, but graphical.")
114 (license (list license:gpl2 license:gpl3)))) ;; dual licensed
122 (uri (string-append "https://github.com/irssi/irssi/"
123 "releases/download/" version "/irssi-"
127 "1gx1flfh4a09nb3b5pvf0ygnbl7rry3l4gph8wij29dsl7khfj3q"))))
128 (build-system gnu-build-system)
131 (modify-phases %standard-phases
133 (lambda* (#:key inputs outputs #:allow-other-keys)
134 (let ((out (assoc-ref outputs "out")))
135 (setenv "CONFIG_SHELL" (which "bash"))
137 (system* "./configure"
138 (string-append "--prefix=" out)
139 (string-append "--with-proxy")
140 (string-append "--with-socks")
141 (string-append "--with-bot")))))))))
148 `(("pkg-config" ,pkg-config)))
149 (home-page "https://irssi.org/")
150 (synopsis "Terminal-based IRC client")
152 "Irssi is a terminal based IRC client for UNIX systems. It also supports
153 SILC and ICB protocols via plugins.")
154 (license license:gpl2+)))
156 (define-public weechat
162 (uri (string-append "https://weechat.org/files/src/weechat-"
166 "0f7d2vdbxc5kgjl7lkamnbxvidgxwa8f9j3nr9fd4gr4z0gzi86d"))
167 (patches (search-patches "weechat-python.patch"))))
168 (build-system cmake-build-system)
170 `(("gettext" ,gettext-minimal)
171 ("pkg-config" ,pkg-config)
173 ("cpputest" ,cpputest)))
174 (inputs `(("ncurses" ,ncurses)
175 ("libgcrypt" ,libgcrypt "out")
187 (list "-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
188 ;; Tests hang indefinately on non-Intel platforms.
189 #:tests? ,(if (any (cute string-prefix? <> (or (%current-target-system)
194 (modify-phases %standard-phases
195 (add-after 'unpack 'disable-failing-tests
196 ;; For reasons best left to the imagination, CppUTest cannot skip
197 ;; more than one single test... Resort to manual patching instead.
198 ;; See <https://cpputest.github.io/manual.html#command_line>.
200 ;; Don't test plugin support for languages we don't enable.
201 (substitute* "tests/unit/test-plugins.cpp"
202 ((".*\\$\\{plugin.name\\} == (javascript|php|ruby)" all)
203 (string-append "// SKIP" all)))
204 (substitute* "tests/scripts/test-scripts.cpp"
205 ((".*\\{ \"(jvascript|php|ruby)\", " all) ; sic
206 (string-append "// SKIP" all)))
208 (add-after 'install 'wrap
209 (lambda* (#:key inputs outputs #:allow-other-keys)
210 (let ((out (assoc-ref outputs "out"))
211 (py2 (assoc-ref inputs "python")))
212 (wrap-program (string-append out "/bin/weechat")
213 `("PATH" ":" prefix (,(string-append py2 "/bin"))))
215 (synopsis "Extensible chat client")
216 (description "WeeChat (Wee Enhanced Environment for Chat) is an
217 @dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast.
218 The client uses a curses frontend, and there are remote interfaces for Web,
219 Qt, Android, and Emacs.
221 Everything in WeeChat can be done with the keyboard, though it also supports
222 using a mouse. It is customizable and extensible with plugins and scripts.")
223 (home-page "https://www.weechat.org/")
224 (license license:gpl3)))
232 (uri (string-append "https://ircii.warped.com/"
233 name "-" version ".tar.gz"))
236 "178dc279f5j894qvp96dzz7c0jpryqlcqw5g0dc9yaxg9kgw1lqm"))))
237 (build-system gnu-build-system)
238 ;; TODO: We should package a small socks4/5 library/server to configure
239 ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which
243 #:configure-flags (list
245 "--with-emacs-meta-keys"
246 (string-append "--with-openssl="
247 (assoc-ref %build-inputs "openssl")))
249 (modify-phases %standard-phases
250 (add-after 'unpack 'patch-bsdinstall-absolute-path-bins
251 (lambda* (#:key inputs #:allow-other-keys)
252 (substitute* "bsdinstall"
253 (("/bin/strip") "strip")
255 (("/bin/chmod") "chmod")
256 (("/etc/chown") "chown")
257 (("/bin/chgrp") "chgrp")
258 (("/bin/mkdir") "mkdir")
260 (("/bin/mv") "mv")))))))
262 `(("ncurses" ,ncurses)
263 ("openssl" ,openssl)))
265 `(("pkg-config" ,pkg-config)
267 (home-page "http://www.eterna.com.au/ircii/")
268 (synopsis "Terminal-based IRC and ICB client")
270 "ircII is a terminal based IRC and ICB client for UNIX systems.")
271 (license license:bsd-3)))
279 (uri (string-append "http://dl.suckless.org/tools/"
280 name "-" version ".tar.gz"))
283 "1lk8vjl7i8dcjh4jkg8h8bkapcbs465sy8g9c0chfqsywbmf3ndr"))))
284 (build-system gnu-build-system)
286 `(#:tests? #f ; no tests
287 #:make-flags (list (string-append "PREFIX=" %output)
290 (modify-phases %standard-phases
291 (delete 'configure)))) ; no configure
292 (home-page "https://tools.suckless.org/ii/")
293 (synopsis "FIFO and file system based IRC client")
295 "ii (Irc it) is a minimalist FIFO and file system based IRC client.")
296 (license license:expat)))
304 (uri (string-append "http://dl.suckless.org/tools/"
305 name "-" version ".tar.gz"))
308 "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc"))))
309 (build-system gnu-build-system)
311 `(#:tests? #f ; no tests
312 #:make-flags (list "CC=gcc"
313 (string-append "PREFIX=" %output))
315 (modify-phases %standard-phases
316 (delete 'configure)))) ; no configure
317 (home-page "https://tools.suckless.org/sic/")
318 (synopsis "Simple IRC client")
320 "sic is a simple IRC client, even more minimalistic than ii.")
321 (license license:expat)))
323 (define-public limnoria
326 (version "2017.10.01")
330 (uri (pypi-uri "limnoria" version))
333 "1hd8h257x7a0s4rvb4aqvfi77qfcyv6jaz70nndg7y6p4yhvjmy6"))))
334 (build-system python-build-system)
336 `(("python-pytz" ,python-pytz)
337 ("python-chardet" ,python-chardet)
338 ("python-dateutil" ,python-dateutil)
339 ("python-gnupg" ,python-gnupg)
340 ("python-feedparser" ,python-feedparser)
341 ("python-sqlalchemy" ,python-sqlalchemy)
342 ("python-socksipy-branch" ,python-socksipy-branch)
343 ("python-ecdsa" ,python-ecdsa)))
345 `(("python-mock" ,python-mock)))
346 ;; Despite the existence of a test folder there is no test phase.
347 ;; We need to package https://github.com/ProgVal/irctest and write
348 ;; our own testphase.
351 (home-page "https://github.com/ProgVal/Limnoria")
352 (synopsis "Modified version of Supybot (an IRC bot and framework)")
354 "Modified version of Supybot with Python 3 and IRCv3 support,
355 embedded web server, translations (fr, fi, it, hu, de), and many
356 other enhancements and bug fixes.")
357 (license license:bsd-3)))
365 (uri (string-append "http://ftp.epicsol.org/pub/"
366 "epic/EPIC5-PRODUCTION/"
367 name "-" version ".tar.xz"))
370 "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"))))
371 (build-system gnu-build-system)
373 `(#:test-target "test"
375 (modify-phases %standard-phases
376 (add-after 'unpack 'patch-perl
378 (substitute* "regress/crash-irc"
379 (("perl5") (which "perl")))
381 (add-after 'unpack 'patch-bsdinstall
382 ;; If we just remove /bin/ some part of the bsdinstall breaks.
383 ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which
384 ;; means if we leave /etc/ in, install fails.
386 (substitute* "bsdinstall"
387 (("/bin/strip") "strip")
389 (("/bin/chmod") "chmod")
390 (("/bin/chgrp") "chgrp")
391 (("/bin/mkdir") "mkdir")
397 (lambda* (#:key outputs #:allow-other-keys)
398 ;; The tarball uses a very old version of autconf. It does not
399 ;; understand extra flags like `--enable-fast-install', so
400 ;; we need to invoke it with just what it understands.
401 (let ((out (assoc-ref outputs "out")))
402 ;; 'configure' doesn't understand '--host'.
403 ,@(if (%current-target-system)
404 `((setenv "CHOST" ,(%current-target-system)))
406 (setenv "CONFIG_SHELL" (which "bash"))
407 (setenv "SHELL" (which "bash"))
409 (system* "./configure"
410 (string-append "--prefix=" out)
411 "--with-ipv6" "--with-libarchive"
412 ;; We use libressl because openssl does not come
413 ;; with the lib/libssl.a which is needed for epic5.
414 ;; XXX: No matter which implementation is chosen,
415 ;; epic5 fails to connect to tls ports of roundrobin
416 ;; irc networks. This however is believed to be an
417 ;; protocol issue at epic5 related to ircd.
418 (string-append "--with-ssl="
419 (assoc-ref %build-inputs "libressl"))
420 (string-append "--with-tcl="
421 (assoc-ref %build-inputs "tcl")
422 "/lib/tclConfig.sh")))))))))
424 `(("libressl" ,libressl)
426 ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip files"
431 `(("pkg-config" ,pkg-config)))
432 (home-page "http://epicsol.org")
433 (synopsis "Epic5 IRC Client")
435 "EPIC is a IRC client that has been under active development for
436 over 20 years. It is stable and mature, and offers an excellent ircII
437 interface for those who are accustomed to the ircII way of doing things.")
438 (license (list license:bsd-3
441 ;; The epic license is equal to the standard three-clause
442 ;; BSD license except that you are not permitted to remove the
443 ;; "Redistribution is permitted" clause of the license if you
444 ;; distribute binaries.
445 (license:non-copyleft "http://epicsol.org/copyright")))))