doc: "filesystem" -> "file system"
[jackhill/guix/guix.git] / gnu / packages / irc.scm
CommitLineData
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>
27930f85 5;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
4aecc79b 6;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
980f058d
EF
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages irc)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix download)
26 #:use-module (guix packages)
27 #:use-module (guix build-system cmake)
27930f85 28 #:use-module (guix build-system gnu)
e288f007
EF
29 #:use-module (gnu packages)
30 #:use-module (gnu packages aspell)
31 #:use-module (gnu packages autogen)
32 #:use-module (gnu packages autotools)
33 #:use-module (gnu packages base)
980f058d 34 #:use-module (gnu packages compression)
e288f007
EF
35 #:use-module (gnu packages curl)
36 #:use-module (gnu packages cyrus-sasl)
37 #:use-module (gnu packages file)
38 #:use-module (gnu packages gettext)
27930f85 39 #:use-module (gnu packages glib)
e288f007
EF
40 #:use-module (gnu packages gnupg)
41 #:use-module (gnu packages guile)
42 #:use-module (gnu packages lua)
27930f85 43 #:use-module (gnu packages ncurses)
980f058d
EF
44 #:use-module (gnu packages kde)
45 #:use-module (gnu packages kde-frameworks)
27930f85 46 #:use-module (gnu packages perl)
980f058d 47 #:use-module (gnu packages pkg-config)
e288f007 48 #:use-module (gnu packages python)
27930f85 49 #:use-module (gnu packages qt)
e288f007 50 #:use-module (gnu packages tcl)
27930f85 51 #:use-module (gnu packages tls))
980f058d
EF
52
53(define-public quassel
54 (package
55 (name "quassel")
957ba692 56 (version "0.12.4")
980f058d
EF
57 (source
58 (origin
59 (method url-fetch)
60 (uri (string-append "http://quassel-irc.org/pub/quassel-"
61 version ".tar.bz2"))
62 (sha256
63 (base32
957ba692 64 "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))))
980f058d
EF
65 (build-system cmake-build-system)
66 (arguments
67 ;; The three binaries are not mutually exlusive, and are all built
68 ;; by default.
69 `(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 5.0 MiB
70 ;;"-DWANT_CORE=OFF" ; 2.3 MiB
71 ;;"-DWANT_MONO=OFF" ; 6.3 MiB
72 "-DUSE_QT5=ON" ; default is qt4
73 "-DWITH_KDE=OFF" ; no to integration
74 "-DWITH_OXYGEN=ON" ; on=embed icons
0b166a75 75 "-DWITH_WEBKIT=OFF") ; qtwebkit isn't packaged
980f058d
EF
76 #:tests? #f)) ; no test target
77 (native-inputs `(("pkg-config" ,pkg-config)))
78 (inputs
79 `(("extra-cmake-modules" ,extra-cmake-modules)
80 ("oxygen-icons" ,oxygen-icons)
81 ("qca" ,qca)
0b166a75
EF
82 ("qtbase", qtbase)
83 ("qttools" ,qttools)
84 ("qtscript" ,qtscript)
980f058d
EF
85 ("snorenotify" ,snorenotify)
86 ("zlib" ,zlib)))
87 (home-page "http://quassel-irc.org/")
88 (synopsis "Distributed IRC client")
89 (description "Quassel is a distributed IRC client, meaning that one or more
90clients can attach to and detach from the central core. It resembles the
91popular combination of screen and a text-based IRC client such as WeeChat or
92irssi, but graphical.")
93 (license (list license:gpl2 license:gpl3)))) ;; dual licensed
27930f85
EF
94
95(define-public irssi
96 (package
97 (name "irssi")
16736e02 98 (version "0.8.19")
27930f85
EF
99 (source (origin
100 (method url-fetch)
fd41741b
EF
101 (uri (string-append "https://github.com/irssi/irssi/"
102 "releases/download/" version "/irssi-"
103 version ".tar.xz"))
27930f85
EF
104 (sha256
105 (base32
16736e02 106 "1lz57v3nkki30lb883pipp5syyfkssvjlq3xxf9yl578902h982c"))))
27930f85
EF
107 (build-system gnu-build-system)
108 (arguments
109 `(#:phases
a61bd6a5
EF
110 (modify-phases %standard-phases
111 (replace 'configure
112 (lambda* (#:key inputs outputs #:allow-other-keys)
113 (let ((out (assoc-ref outputs "out"))
114 (ncurses (assoc-ref inputs "ncurses")))
115 (setenv "CONFIG_SHELL" (which "bash"))
116 (zero?
117 (system* "./configure"
118 (string-append "--prefix=" out)
7b3f2682
EF
119 (string-append "--with-ncurses=" ncurses)
120 (string-append "--with-proxy")
121 (string-append "--with-socks")
122 (string-append "--with-bot")))))))))
27930f85
EF
123 (inputs
124 `(("glib" ,glib)
125 ("ncurses" ,ncurses)
126 ("openssl" ,openssl)))
127 (native-inputs
128 `(("pkg-config" ,pkg-config)
129 ("perl" ,perl)))
130 (home-page "http://www.irssi.org/")
131 (synopsis "Terminal-based IRC client")
132 (description
133 "Irssi is a terminal based IRC client for UNIX systems. It also supports
134SILC and ICB protocols via plugins.")
135 (license license:gpl2+)))
e288f007
EF
136
137(define-public weechat
138 (package
139 (name "weechat")
4aecc79b 140 (version "1.5")
e288f007
EF
141 (source (origin
142 (method url-fetch)
143 (uri (string-append "http://weechat.org/files/src/weechat-"
144 version ".tar.gz"))
145 (sha256
146 (base32
4aecc79b 147 "0w87w4wy61x705ama8h36z9mgdj2gmmzdfrsxvwyh2m2as2max1i"))
fc1adab1 148 (patches (search-patches "weechat-python.patch"))))
e288f007
EF
149 (build-system gnu-build-system)
150 (native-inputs `(("autoconf" ,autoconf)
151 ("pkg-config" ,pkg-config)
152 ("file" ,file)
153 ("autogen" ,autogen)
154 ("automake" ,automake)
155 ("libtool" ,libtool)))
156 (inputs `(("ncurses" ,ncurses)
157 ("diffutils" ,diffutils)
158 ("gettext" ,gnu-gettext)
159 ("libltdl" ,libltdl)
160 ("libgcrypt" ,libgcrypt "out")
161 ("zlib" ,zlib)
162 ("aspell" ,aspell)
163 ("curl" ,curl)
164 ("gnutls" ,gnutls)
165 ("guile" ,guile-2.0)
166 ("openssl" ,openssl)
167 ("cyrus-sasl" ,cyrus-sasl)
168 ("lua" ,lua-5.1)
169 ("python" ,python-2)
170 ("perl" ,perl)
171 ("tcl" ,tcl)))
172 (arguments
173 `(#:configure-flags (list (string-append
174 "--with-tclconfig="
175 (assoc-ref %build-inputs "tcl") "/lib"))
176 #:phases (modify-phases %standard-phases
177 (add-before 'configure 'autogen
178 (lambda _
179 (zero? (system* "./autogen.sh"))))
180 (add-before 'build 'set-python-file-name
181 (lambda* (#:key inputs #:allow-other-keys)
182 (substitute* "src/plugins/python/weechat-python.c"
183 (("python2_bin = weechat_python_get_python2_bin.*;")
184 (string-append "python2_bin = strdup (\""
185 (assoc-ref inputs "python")
186 "/bin/python\");\n")))
187 #t)))))
188 (synopsis "Extensible chat client")
189 (description "WeeChat (Wee Enhanced Environment for Chat) is an
190Internet Relay Chat client, which is designed to be light and fast.
191The client uses a curses frontend, and there are remote interfaces
192for Web, Qt, Android and Emacs. In WeeChat everything can be done
193with a keyboard, though it also supports mouse. It is customizable
194and extensible with plugins and scripts.")
195 (home-page "http://www.weechat.org/")
196 (license license:gpl3)))
c744f5c0 197
198(define-public ircii
199 (package
200 (name "ircii")
201 (version "20151120")
202 (source (origin
203 (method url-fetch)
204 (uri (string-append "https://ircii.warped.com/"
205 name "-" version ".tar.gz"))
206 (sha256
207 (base32
208 "178dc279f5j894qvp96dzz7c0jpryqlcqw5g0dc9yaxg9kgw1lqm"))))
209 (build-system gnu-build-system)
210 ;; TODO: We should package a small socks4/5 library/server to configure
211 ;; ircii with socks client. `ghc-socks' pulls in lots of haskell, which
212 ;; is too big.
213 (arguments
214 `(#:tests? #f
215 #:configure-flags (list
216 "--enable-ipv6"
217 "--with-emacs-meta-keys"
218 (string-append "--with-openssl="
219 (assoc-ref %build-inputs "openssl")))
220 #:phases
221 (modify-phases %standard-phases
222 (add-after 'unpack 'patch-bsdinstall-absolute-path-bins
223 (lambda* (#:key inputs #:allow-other-keys)
224 (substitute* "bsdinstall"
225 (("/bin/strip") "strip")
226 (("/bin/cp") "cp")
227 (("/bin/chmod") "chmod")
228 (("/etc/chown") "chown")
229 (("/bin/chgrp") "chgrp")
230 (("/bin/mkdir") "mkdir")
231 (("/bin/rm") "rm")
232 (("/bin/mv") "mv")))))))
233 (inputs
234 `(("ncurses" ,ncurses)
235 ("openssl" ,openssl)))
236 (native-inputs
237 `(("pkg-config" ,pkg-config)
238 ("perl" ,perl)))
239 (home-page "http://www.eterna.com.au/ircii/")
240 (synopsis "Terminal-based IRC and ICB client")
241 (description
242 "ircII is a terminal based IRC and ICB client for UNIX systems.")
243 (license license:bsd-3)))
99840fbb 244
245(define-public ii
246 (package
247 (name "ii")
248 (version "1.7")
249 (source (origin
250 (method url-fetch)
251 (uri (string-append "http://dl.suckless.org/tools/"
252 name "-" version ".tar.gz"))
253 (sha256
254 (base32
255 "176cqwnn6h7w4kbfd66hzqa243l26pqp2b06bii0nmnm0rkaqwis"))))
256 (build-system gnu-build-system)
257 (arguments
258 `(#:tests? #f ; no tests
259 #:make-flags (list (string-append "PREFIX=" %output)
260 "CC=gcc")
261 #:phases
262 (modify-phases %standard-phases
263 (delete 'configure)))) ; no configure
264 (home-page "http://tools.suckless.org/ii/")
8f65585b 265 (synopsis "FIFO and file system based IRC client")
99840fbb 266 (description
8f65585b 267 "ii (Irc it) is a minimalist FIFO and file system based IRC client.")
99840fbb 268 (license license:expat)))
e4eb2134 269
270(define-public sic
271 (package
272 (name "sic")
273 (version "1.2")
274 (source (origin
275 (method url-fetch)
276 (uri (string-append "http://dl.suckless.org/tools/"
277 name "-" version ".tar.gz"))
278 (sha256
279 (base32
280 "11aiavxp44yayibc58bvimi8mrxvbw1plbci8cnbl4syk42zj1xc"))))
281 (build-system gnu-build-system)
282 (arguments
283 `(#:tests? #f ; no tests
284 #:make-flags (list "CC=gcc"
285 (string-append "PREFIX=" %output))
286 #:phases
287 (modify-phases %standard-phases
288 (delete 'configure)))) ; no configure
289 (home-page "http://tools.suckless.org/sic/")
290 (synopsis "Simple IRC client")
291 (description
292 "sic is a simple IRC client, even more minimalistic than ii.")
293 (license license:expat)))