Commit | Line | Data |
---|---|---|
980f058d | 1 | ;;; GNU Guix --- Functional package management for GNU |
27930f85 | 2 | ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com> |
e288f007 EF |
3 | ;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net> |
4 | ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> | |
709a3bb7 | 5 | ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
0c69a17e | 6 | ;;; Copyright © 2016 ng0 <ng0@libertad.pw> |
507809be | 7 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> |
d65db1d5 | 8 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
980f058d EF |
9 | ;;; |
10 | ;;; This file is part of GNU Guix. | |
11 | ;;; | |
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. | |
16 | ;;; | |
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. | |
21 | ;;; | |
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/>. | |
24 | ||
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) | |
27930f85 | 30 | #:use-module (guix build-system gnu) |
6ad13b59 | 31 | #:use-module (guix build-system python) |
e288f007 EF |
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) | |
0c69a17e | 37 | #:use-module (gnu packages backup) |
980f058d | 38 | #:use-module (gnu packages compression) |
e288f007 EF |
39 | #:use-module (gnu packages curl) |
40 | #:use-module (gnu packages cyrus-sasl) | |
0c69a17e | 41 | #:use-module (gnu packages databases) |
e288f007 EF |
42 | #:use-module (gnu packages file) |
43 | #:use-module (gnu packages gettext) | |
27930f85 | 44 | #:use-module (gnu packages glib) |
e288f007 EF |
45 | #:use-module (gnu packages gnupg) |
46 | #:use-module (gnu packages guile) | |
47 | #:use-module (gnu packages lua) | |
27930f85 | 48 | #:use-module (gnu packages ncurses) |
980f058d EF |
49 | #:use-module (gnu packages kde) |
50 | #:use-module (gnu packages kde-frameworks) | |
27930f85 | 51 | #:use-module (gnu packages perl) |
980f058d | 52 | #:use-module (gnu packages pkg-config) |
e288f007 | 53 | #:use-module (gnu packages python) |
0c69a17e | 54 | #:use-module (gnu packages ruby) |
27930f85 | 55 | #:use-module (gnu packages qt) |
e288f007 | 56 | #:use-module (gnu packages tcl) |
6ad13b59 | 57 | #:use-module (gnu packages tls) |
58 | #:use-module (gnu packages web)) | |
980f058d EF |
59 | |
60 | (define-public quassel | |
61 | (package | |
62 | (name "quassel") | |
957ba692 | 63 | (version "0.12.4") |
980f058d EF |
64 | (source |
65 | (origin | |
66 | (method url-fetch) | |
67 | (uri (string-append "http://quassel-irc.org/pub/quassel-" | |
68 | version ".tar.bz2")) | |
36378bd5 | 69 | (patches (search-patches "quassel-fix-tls-check.patch")) |
980f058d EF |
70 | (sha256 |
71 | (base32 | |
b82c63d0 EF |
72 | "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k")) |
73 | (modules '((guix build utils))) | |
74 | ;; We don't want to install the bundles scripts | |
75 | (snippet | |
76 | '(begin | |
77 | (delete-file-recursively "data/scripts") | |
78 | (substitute* "data/CMakeLists.txt" | |
79 | (("NOT WIN32") "WIN32")))))) | |
980f058d EF |
80 | (build-system cmake-build-system) |
81 | (arguments | |
82 | ;; The three binaries are not mutually exlusive, and are all built | |
83 | ;; by default. | |
b82c63d0 EF |
84 | '(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 5.2 MiB |
85 | ;;"-DWANT_CORE=OFF" ; 2.4 MiB | |
86 | ;;"-DWANT_MONO=OFF" ; 6.4 MiB | |
980f058d | 87 | "-DUSE_QT5=ON" ; default is qt4 |
b82c63d0 EF |
88 | "-DWITH_KDE=OFF" ; no to kde integration ... |
89 | "-DWITH_OXYGEN=ON" ; therefore we install bundled icons | |
0b166a75 | 90 | "-DWITH_WEBKIT=OFF") ; qtwebkit isn't packaged |
980f058d | 91 | #:tests? #f)) ; no test target |
b82c63d0 | 92 | (native-inputs |
980f058d | 93 | `(("extra-cmake-modules" ,extra-cmake-modules) |
b82c63d0 EF |
94 | ("pkg-config" ,pkg-config) |
95 | ("qttools" ,qttools))) | |
96 | (inputs | |
97 | `(("qca" ,qca) | |
0b166a75 | 98 | ("qtbase", qtbase) |
0b166a75 | 99 | ("qtscript" ,qtscript) |
980f058d EF |
100 | ("snorenotify" ,snorenotify) |
101 | ("zlib" ,zlib))) | |
102 | (home-page "http://quassel-irc.org/") | |
103 | (synopsis "Distributed IRC client") | |
104 | (description "Quassel is a distributed IRC client, meaning that one or more | |
105 | clients can attach to and detach from the central core. It resembles the | |
106 | popular combination of screen and a text-based IRC client such as WeeChat or | |
107 | irssi, but graphical.") | |
108 | (license (list license:gpl2 license:gpl3)))) ;; dual licensed | |
27930f85 EF |
109 | |
110 | (define-public irssi | |
111 | (package | |
112 | (name "irssi") | |
25669275 | 113 | (version "1.0.5") |
27930f85 EF |
114 | (source (origin |
115 | (method url-fetch) | |
fd41741b EF |
116 | (uri (string-append "https://github.com/irssi/irssi/" |
117 | "releases/download/" version "/irssi-" | |
118 | version ".tar.xz")) | |
27930f85 EF |
119 | (sha256 |
120 | (base32 | |
25669275 | 121 | "055r9fhbfcfkzinsnprnlqd8psspdyn3j26lzsmnrc1fw4kn8mf2")))) |
27930f85 EF |
122 | (build-system gnu-build-system) |
123 | (arguments | |
124 | `(#:phases | |
a61bd6a5 EF |
125 | (modify-phases %standard-phases |
126 | (replace 'configure | |
127 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
d9d23101 | 128 | (let ((out (assoc-ref outputs "out"))) |
a61bd6a5 EF |
129 | (setenv "CONFIG_SHELL" (which "bash")) |
130 | (zero? | |
131 | (system* "./configure" | |
132 | (string-append "--prefix=" out) | |
7b3f2682 EF |
133 | (string-append "--with-proxy") |
134 | (string-append "--with-socks") | |
135 | (string-append "--with-bot"))))))))) | |
27930f85 EF |
136 | (inputs |
137 | `(("glib" ,glib) | |
138 | ("ncurses" ,ncurses) | |
d9d23101 | 139 | ("openssl" ,openssl) |
27930f85 | 140 | ("perl" ,perl))) |
d9d23101 MB |
141 | (native-inputs |
142 | `(("pkg-config" ,pkg-config))) | |
143 | (home-page "https://irssi.org/") | |
27930f85 EF |
144 | (synopsis "Terminal-based IRC client") |
145 | (description | |
146 | "Irssi is a terminal based IRC client for UNIX systems. It also supports | |
147 | SILC and ICB protocols via plugins.") | |
148 | (license license:gpl2+))) | |
e288f007 EF |
149 | |
150 | (define-public weechat | |
151 | (package | |
152 | (name "weechat") | |
faccaa89 | 153 | (version "1.9.1") |
e288f007 EF |
154 | (source (origin |
155 | (method url-fetch) | |
10b91cca | 156 | (uri (string-append "https://weechat.org/files/src/weechat-" |
f87b8e25 | 157 | version ".tar.xz")) |
e288f007 EF |
158 | (sha256 |
159 | (base32 | |
faccaa89 | 160 | "1z92hprvgp128svfbr25x8j9kd114j9929bzbqasrcd92v31z6f2")) |
fc1adab1 | 161 | (patches (search-patches "weechat-python.patch")))) |
709a3bb7 EF |
162 | (build-system cmake-build-system) |
163 | (native-inputs `(("gettext" ,gettext-minimal) | |
164 | ("pkg-config" ,pkg-config))) | |
e288f007 | 165 | (inputs `(("ncurses" ,ncurses) |
e288f007 EF |
166 | ("libgcrypt" ,libgcrypt "out") |
167 | ("zlib" ,zlib) | |
168 | ("aspell" ,aspell) | |
169 | ("curl" ,curl) | |
170 | ("gnutls" ,gnutls) | |
171 | ("guile" ,guile-2.0) | |
e288f007 EF |
172 | ("lua" ,lua-5.1) |
173 | ("python" ,python-2) | |
174 | ("perl" ,perl) | |
175 | ("tcl" ,tcl))) | |
176 | (arguments | |
709a3bb7 | 177 | `(#:tests? #f ; tests require cpputime |
e288f007 | 178 | #:phases (modify-phases %standard-phases |
507809be MB |
179 | (add-after 'install 'wrap |
180 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
181 | (let ((out (assoc-ref outputs "out")) | |
182 | (py2 (assoc-ref inputs "python"))) | |
183 | (wrap-program (string-append out "/bin/weechat") | |
184 | `("PATH" ":" prefix (,(string-append py2 "/bin")))) | |
185 | #t)))))) | |
e288f007 EF |
186 | (synopsis "Extensible chat client") |
187 | (description "WeeChat (Wee Enhanced Environment for Chat) is an | |
d65db1d5 TGR |
188 | @dfn{Internet Relay Chat} (IRC) client, which is designed to be light and fast. |
189 | The client uses a curses frontend, and there are remote interfaces for Web, | |
190 | Qt, Android, and Emacs. | |
191 | ||
192 | Everything in WeeChat can be done with the keyboard, though it also supports | |
193 | using a mouse. It is customizable and extensible with plugins and scripts.") | |
10b91cca | 194 | (home-page "https://www.weechat.org/") |
e288f007 | 195 | (license license:gpl3))) |
c744f5c0 | 196 | |
197 | (define-public ircii | |
198 | (package | |
199 | (name "ircii") | |
200 | (version "20151120") | |
201 | (source (origin | |
202 | (method url-fetch) | |
203 | (uri (string-append "https://ircii.warped.com/" | |
204 | name "-" version ".tar.gz")) | |
205 | (sha256 | |
206 | (base32 | |
207 | "178dc279f5j894qvp96dzz7c0jpryqlcqw5g0dc9yaxg9kgw1lqm")))) | |
208 | (build-system gnu-build-system) | |
209 | ;; TODO: We should package a small socks4/5 library/server to configure | |
210 | ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which | |
211 | ;; is too big. | |
212 | (arguments | |
213 | `(#:tests? #f | |
214 | #:configure-flags (list | |
215 | "--enable-ipv6" | |
216 | "--with-emacs-meta-keys" | |
217 | (string-append "--with-openssl=" | |
218 | (assoc-ref %build-inputs "openssl"))) | |
219 | #:phases | |
220 | (modify-phases %standard-phases | |
221 | (add-after 'unpack 'patch-bsdinstall-absolute-path-bins | |
222 | (lambda* (#:key inputs #:allow-other-keys) | |
223 | (substitute* "bsdinstall" | |
224 | (("/bin/strip") "strip") | |
225 | (("/bin/cp") "cp") | |
226 | (("/bin/chmod") "chmod") | |
227 | (("/etc/chown") "chown") | |
228 | (("/bin/chgrp") "chgrp") | |
229 | (("/bin/mkdir") "mkdir") | |
230 | (("/bin/rm") "rm") | |
231 | (("/bin/mv") "mv"))))))) | |
232 | (inputs | |
233 | `(("ncurses" ,ncurses) | |
234 | ("openssl" ,openssl))) | |
235 | (native-inputs | |
236 | `(("pkg-config" ,pkg-config) | |
237 | ("perl" ,perl))) | |
238 | (home-page "http://www.eterna.com.au/ircii/") | |
239 | (synopsis "Terminal-based IRC and ICB client") | |
240 | (description | |
241 | "ircII is a terminal based IRC and ICB client for UNIX systems.") | |
242 | (license license:bsd-3))) | |
99840fbb | 243 | |
244 | (define-public ii | |
245 | (package | |
246 | (name "ii") | |
247 | (version "1.7") | |
248 | (source (origin | |
249 | (method url-fetch) | |
250 | (uri (string-append "http://dl.suckless.org/tools/" | |
251 | name "-" version ".tar.gz")) | |
252 | (sha256 | |
253 | (base32 | |
254 | "176cqwnn6h7w4kbfd66hzqa243l26pqp2b06bii0nmnm0rkaqwis")))) | |
255 | (build-system gnu-build-system) | |
256 | (arguments | |
257 | `(#:tests? #f ; no tests | |
258 | #:make-flags (list (string-append "PREFIX=" %output) | |
259 | "CC=gcc") | |
260 | #:phases | |
261 | (modify-phases %standard-phases | |
262 | (delete 'configure)))) ; no configure | |
263 | (home-page "http://tools.suckless.org/ii/") | |
8f65585b | 264 | (synopsis "FIFO and file system based IRC client") |
99840fbb | 265 | (description |
8f65585b | 266 | "ii (Irc it) is a minimalist FIFO and file system based IRC client.") |
99840fbb | 267 | (license license:expat))) |
e4eb2134 | 268 | |
269 | (define-public sic | |
270 | (package | |
271 | (name "sic") | |
272 | (version "1.2") | |
273 | (source (origin | |
274 | (method url-fetch) | |
275 | (uri (string-append "http://dl.suckless.org/tools/" | |
276 | name "-" version ".tar.gz")) | |
277 | (sha256 | |
278 | (base32 | |
279 | "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc")))) | |
280 | (build-system gnu-build-system) | |
281 | (arguments | |
282 | `(#:tests? #f ; no tests | |
283 | #:make-flags (list "CC=gcc" | |
284 | (string-append "PREFIX=" %output)) | |
285 | #:phases | |
286 | (modify-phases %standard-phases | |
287 | (delete 'configure)))) ; no configure | |
288 | (home-page "http://tools.suckless.org/sic/") | |
289 | (synopsis "Simple IRC client") | |
290 | (description | |
291 | "sic is a simple IRC client, even more minimalistic than ii.") | |
292 | (license license:expat))) | |
6ad13b59 | 293 | |
294 | (define-public limnoria | |
295 | (package | |
296 | (name "limnoria") | |
3fa1b082 | 297 | (version "2017.08.18") |
6ad13b59 | 298 | (source |
299 | (origin | |
300 | (method url-fetch) | |
301 | (uri (pypi-uri "limnoria" version)) | |
302 | (sha256 | |
303 | (base32 | |
3fa1b082 | 304 | "1hij444l45mjli8i67iyd3syf263ijj1l0cm3irqjjxv5r3f9zjj")))) |
6ad13b59 | 305 | (build-system python-build-system) |
306 | (inputs | |
307 | `(("python-pytz" ,python-pytz) | |
308 | ("python-chardet" ,python-chardet) | |
309 | ("python-dateutil" ,python-dateutil) | |
310 | ("python-gnupg" ,python-gnupg) | |
311 | ("python-feedparser" ,python-feedparser) | |
312 | ("python-sqlalchemy" ,python-sqlalchemy) | |
313 | ("python-socksipy-branch" ,python-socksipy-branch) | |
314 | ("python-ecdsa" ,python-ecdsa))) | |
315 | (native-inputs | |
316 | `(("python-mock" ,python-mock))) | |
317 | ;; Despite the existence of a test folder there is no test phase. | |
318 | ;; We need to package https://github.com/ProgVal/irctest and write | |
319 | ;; our own testphase. | |
320 | (arguments | |
321 | `(#:tests? #f)) | |
322 | (home-page "https://github.com/ProgVal/Limnoria") | |
323 | (synopsis "Modified version of Supybot (an IRC bot and framework)") | |
324 | (description | |
325 | "Modified version of Supybot with Python 3 and IRCv3 support, | |
326 | embedded web server, translations (fr, fi, it, hu, de), and many | |
327 | other enhancements and bug fixes.") | |
328 | (license license:bsd-3))) | |
0c69a17e | 329 | |
330 | (define-public epic5 | |
331 | (package | |
332 | (name "epic5") | |
333 | (version "2.0.1") | |
334 | (source (origin | |
335 | (method url-fetch) | |
336 | (uri (string-append "http://ftp.epicsol.org/pub/" | |
337 | "epic/EPIC5-PRODUCTION/" | |
338 | name "-" version ".tar.xz")) | |
339 | (sha256 | |
340 | (base32 | |
341 | "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm")))) | |
342 | (build-system gnu-build-system) | |
343 | (arguments | |
344 | `(#:test-target "test" | |
345 | #:phases | |
346 | (modify-phases %standard-phases | |
347 | (add-after 'unpack 'patch-perl | |
348 | (lambda _ | |
349 | (substitute* "regress/crash-irc" | |
350 | (("perl5") (which "perl"))) | |
351 | #t)) | |
352 | (add-after 'unpack 'patch-bsdinstall | |
353 | ;; If we just remove /bin/ some part of the bsdinstall breaks. | |
354 | ;; Furthermore bsdinstalls has a reference to /etc/chmod here, which | |
355 | ;; means if we leave /etc/ in, install fails. | |
356 | (lambda _ | |
357 | (substitute* "bsdinstall" | |
358 | (("/bin/strip") "strip") | |
359 | (("/bin/cp") "cp") | |
360 | (("/bin/chmod") "chmod") | |
361 | (("/bin/chgrp") "chgrp") | |
362 | (("/bin/mkdir") "mkdir") | |
363 | (("/bin/rm") "rm") | |
364 | (("/bin/mv") "mv") | |
365 | (("/etc/") "")) | |
366 | #t)) | |
367 | (replace 'configure | |
368 | (lambda* (#:key outputs #:allow-other-keys) | |
369 | ;; The tarball uses a very old version of autconf. It does not | |
370 | ;; understand extra flags like `--enable-fast-install', so | |
371 | ;; we need to invoke it with just what it understands. | |
372 | (let ((out (assoc-ref outputs "out"))) | |
373 | ;; 'configure' doesn't understand '--host'. | |
374 | ,@(if (%current-target-system) | |
375 | `((setenv "CHOST" ,(%current-target-system))) | |
376 | '()) | |
377 | (setenv "CONFIG_SHELL" (which "bash")) | |
378 | (setenv "SHELL" (which "bash")) | |
379 | (zero? | |
380 | (system* "./configure" | |
381 | (string-append "--prefix=" out) | |
382 | "--with-ipv6" "--with-libarchive" | |
383 | ;; We use libressl because openssl does not come | |
384 | ;; with the lib/libssl.a which is needed for epic5. | |
385 | ;; XXX: No matter which implementation is chosen, | |
386 | ;; epic5 fails to connect to tls ports of roundrobin | |
387 | ;; irc networks. This however is believed to be an | |
388 | ;; protocol issue at epic5 related to ircd. | |
389 | (string-append "--with-ssl=" | |
390 | (assoc-ref %build-inputs "libressl")) | |
391 | (string-append "--with-tcl=" | |
392 | (assoc-ref %build-inputs "tcl") | |
393 | "/lib/tclConfig.sh"))))))))) | |
394 | (inputs | |
395 | `(("libressl" ,libressl) | |
396 | ("ncurses" ,ncurses) | |
397 | ("libarchive" ,libarchive) ; CHANGELOG: "Support for loading zip files" | |
398 | ("perl" ,perl) | |
399 | ("tcl" ,tcl) | |
400 | ("ruby" ,ruby))) | |
401 | (native-inputs | |
402 | `(("pkg-config" ,pkg-config))) | |
403 | (home-page "http://epicsol.org") | |
404 | (synopsis "Epic5 IRC Client") | |
405 | (description | |
406 | "EPIC is a IRC client that has been under active development for | |
407 | over 20 years. It is stable and mature, and offers an excellent ircII | |
408 | interface for those who are accustomed to the ircII way of doing things.") | |
409 | (license (list license:bsd-3 | |
410 | license:isc | |
411 | license:bsd-4 | |
412 | ;; The epic license is equal to the standard three-clause | |
413 | ;; BSD license except that you are not permitted to remove the | |
414 | ;; "Redistribution is permitted" clause of the license if you | |
415 | ;; distribute binaries. | |
1975ec69 | 416 | (license:non-copyleft "http://epicsol.org/copyright"))))) |