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> | |
27930f85 | 5 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
980f058d EF |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | (define-module (gnu packages irc) | |
23 | #:use-module ((guix licenses) #:prefix license:) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix packages) | |
26 | #:use-module (guix build-system cmake) | |
27930f85 | 27 | #:use-module (guix build-system gnu) |
e288f007 EF |
28 | #:use-module (gnu packages) |
29 | #:use-module (gnu packages aspell) | |
30 | #:use-module (gnu packages autogen) | |
31 | #:use-module (gnu packages autotools) | |
32 | #:use-module (gnu packages base) | |
980f058d | 33 | #:use-module (gnu packages compression) |
e288f007 EF |
34 | #:use-module (gnu packages curl) |
35 | #:use-module (gnu packages cyrus-sasl) | |
36 | #:use-module (gnu packages file) | |
37 | #:use-module (gnu packages gettext) | |
27930f85 | 38 | #:use-module (gnu packages glib) |
e288f007 EF |
39 | #:use-module (gnu packages gnupg) |
40 | #:use-module (gnu packages guile) | |
41 | #:use-module (gnu packages lua) | |
27930f85 | 42 | #:use-module (gnu packages ncurses) |
980f058d EF |
43 | #:use-module (gnu packages kde) |
44 | #:use-module (gnu packages kde-frameworks) | |
27930f85 | 45 | #:use-module (gnu packages perl) |
980f058d | 46 | #:use-module (gnu packages pkg-config) |
e288f007 | 47 | #:use-module (gnu packages python) |
27930f85 | 48 | #:use-module (gnu packages qt) |
e288f007 | 49 | #:use-module (gnu packages tcl) |
27930f85 | 50 | #:use-module (gnu packages tls)) |
980f058d EF |
51 | |
52 | (define-public quassel | |
53 | (package | |
54 | (name "quassel") | |
957ba692 | 55 | (version "0.12.4") |
980f058d EF |
56 | (source |
57 | (origin | |
58 | (method url-fetch) | |
59 | (uri (string-append "http://quassel-irc.org/pub/quassel-" | |
60 | version ".tar.bz2")) | |
61 | (sha256 | |
62 | (base32 | |
957ba692 | 63 | "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k")))) |
980f058d EF |
64 | (build-system cmake-build-system) |
65 | (arguments | |
66 | ;; The three binaries are not mutually exlusive, and are all built | |
67 | ;; by default. | |
68 | `(#:configure-flags '(;;"-DWANT_QTCLIENT=OFF" ; 5.0 MiB | |
69 | ;;"-DWANT_CORE=OFF" ; 2.3 MiB | |
70 | ;;"-DWANT_MONO=OFF" ; 6.3 MiB | |
71 | "-DUSE_QT5=ON" ; default is qt4 | |
72 | "-DWITH_KDE=OFF" ; no to integration | |
73 | "-DWITH_OXYGEN=ON" ; on=embed icons | |
74 | "-DWITH_WEBKIT=ON") ; wants qtwebkit, in qt5 | |
75 | #:tests? #f)) ; no test target | |
76 | (native-inputs `(("pkg-config" ,pkg-config))) | |
77 | (inputs | |
78 | `(("extra-cmake-modules" ,extra-cmake-modules) | |
79 | ("oxygen-icons" ,oxygen-icons) | |
80 | ("qca" ,qca) | |
81 | ("qt", qt) | |
82 | ("snorenotify" ,snorenotify) | |
83 | ("zlib" ,zlib))) | |
84 | (home-page "http://quassel-irc.org/") | |
85 | (synopsis "Distributed IRC client") | |
86 | (description "Quassel is a distributed IRC client, meaning that one or more | |
87 | clients can attach to and detach from the central core. It resembles the | |
88 | popular combination of screen and a text-based IRC client such as WeeChat or | |
89 | irssi, but graphical.") | |
90 | (license (list license:gpl2 license:gpl3)))) ;; dual licensed | |
27930f85 EF |
91 | |
92 | (define-public irssi | |
93 | (package | |
94 | (name "irssi") | |
16736e02 | 95 | (version "0.8.19") |
27930f85 EF |
96 | (source (origin |
97 | (method url-fetch) | |
fd41741b EF |
98 | (uri (string-append "https://github.com/irssi/irssi/" |
99 | "releases/download/" version "/irssi-" | |
100 | version ".tar.xz")) | |
27930f85 EF |
101 | (sha256 |
102 | (base32 | |
16736e02 | 103 | "1lz57v3nkki30lb883pipp5syyfkssvjlq3xxf9yl578902h982c")))) |
27930f85 EF |
104 | (build-system gnu-build-system) |
105 | (arguments | |
106 | `(#:phases | |
a61bd6a5 EF |
107 | (modify-phases %standard-phases |
108 | (replace 'configure | |
109 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
110 | (let ((out (assoc-ref outputs "out")) | |
111 | (ncurses (assoc-ref inputs "ncurses"))) | |
112 | (setenv "CONFIG_SHELL" (which "bash")) | |
113 | (zero? | |
114 | (system* "./configure" | |
115 | (string-append "--prefix=" out) | |
7b3f2682 EF |
116 | (string-append "--with-ncurses=" ncurses) |
117 | (string-append "--with-proxy") | |
118 | (string-append "--with-socks") | |
119 | (string-append "--with-bot"))))))))) | |
27930f85 EF |
120 | (inputs |
121 | `(("glib" ,glib) | |
122 | ("ncurses" ,ncurses) | |
123 | ("openssl" ,openssl))) | |
124 | (native-inputs | |
125 | `(("pkg-config" ,pkg-config) | |
126 | ("perl" ,perl))) | |
127 | (home-page "http://www.irssi.org/") | |
128 | (synopsis "Terminal-based IRC client") | |
129 | (description | |
130 | "Irssi is a terminal based IRC client for UNIX systems. It also supports | |
131 | SILC and ICB protocols via plugins.") | |
132 | (license license:gpl2+))) | |
e288f007 EF |
133 | |
134 | (define-public weechat | |
135 | (package | |
136 | (name "weechat") | |
137 | (version "1.4") | |
138 | (source (origin | |
139 | (method url-fetch) | |
140 | (uri (string-append "http://weechat.org/files/src/weechat-" | |
141 | version ".tar.gz")) | |
142 | (sha256 | |
143 | (base32 | |
144 | "19apd3hav77v74j7flicai0843k7wrkr2fd3q2ayvzkgnbrrp1ai")) | |
fc1adab1 | 145 | (patches (search-patches "weechat-python.patch")))) |
e288f007 EF |
146 | (build-system gnu-build-system) |
147 | (native-inputs `(("autoconf" ,autoconf) | |
148 | ("pkg-config" ,pkg-config) | |
149 | ("file" ,file) | |
150 | ("autogen" ,autogen) | |
151 | ("automake" ,automake) | |
152 | ("libtool" ,libtool))) | |
153 | (inputs `(("ncurses" ,ncurses) | |
154 | ("diffutils" ,diffutils) | |
155 | ("gettext" ,gnu-gettext) | |
156 | ("libltdl" ,libltdl) | |
157 | ("libgcrypt" ,libgcrypt "out") | |
158 | ("zlib" ,zlib) | |
159 | ("aspell" ,aspell) | |
160 | ("curl" ,curl) | |
161 | ("gnutls" ,gnutls) | |
162 | ("guile" ,guile-2.0) | |
163 | ("openssl" ,openssl) | |
164 | ("cyrus-sasl" ,cyrus-sasl) | |
165 | ("lua" ,lua-5.1) | |
166 | ("python" ,python-2) | |
167 | ("perl" ,perl) | |
168 | ("tcl" ,tcl))) | |
169 | (arguments | |
170 | `(#:configure-flags (list (string-append | |
171 | "--with-tclconfig=" | |
172 | (assoc-ref %build-inputs "tcl") "/lib")) | |
173 | #:phases (modify-phases %standard-phases | |
174 | (add-before 'configure 'autogen | |
175 | (lambda _ | |
176 | (zero? (system* "./autogen.sh")))) | |
177 | (add-before 'build 'set-python-file-name | |
178 | (lambda* (#:key inputs #:allow-other-keys) | |
179 | (substitute* "src/plugins/python/weechat-python.c" | |
180 | (("python2_bin = weechat_python_get_python2_bin.*;") | |
181 | (string-append "python2_bin = strdup (\"" | |
182 | (assoc-ref inputs "python") | |
183 | "/bin/python\");\n"))) | |
184 | #t))))) | |
185 | (synopsis "Extensible chat client") | |
186 | (description "WeeChat (Wee Enhanced Environment for Chat) is an | |
187 | Internet Relay Chat client, which is designed to be light and fast. | |
188 | The client uses a curses frontend, and there are remote interfaces | |
189 | for Web, Qt, Android and Emacs. In WeeChat everything can be done | |
190 | with a keyboard, though it also supports mouse. It is customizable | |
191 | and extensible with plugins and scripts.") | |
192 | (home-page "http://www.weechat.org/") | |
193 | (license license:gpl3))) |