Commit | Line | Data |
---|---|---|
6a7e1a18 | 1 | ;;; GNU Guix --- Functional package management for GNU |
99e28bbf | 2 | ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
89978a0a | 3 | ;;; Copyright © 2016 Mckinley Olsen <mck.olsen@gmail.com> |
98b9732c | 4 | ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com> |
af39609b | 5 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
c2ffcc44 | 6 | ;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
abe2ec73 JMSG |
7 | ;;; Copyright © 2016, 2017 José Miguel Sánchez García <jmi2k@openmailbox.org> |
8 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | |
90bf2608 | 9 | ;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net> |
f2b7be09 | 10 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> |
f9ff014b | 11 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
6a7e1a18 EF |
12 | ;;; |
13 | ;;; This file is part of GNU Guix. | |
14 | ;;; | |
15 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
16 | ;;; under the terms of the GNU General Public License as published by | |
17 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
18 | ;;; your option) any later version. | |
19 | ;;; | |
20 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
21 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | ;;; GNU General Public License for more details. | |
24 | ;;; | |
25 | ;;; You should have received a copy of the GNU General Public License | |
26 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
27 | ||
28 | (define-module (gnu packages terminals) | |
29 | #:use-module ((guix licenses) #:prefix license:) | |
30 | #:use-module (guix build utils) | |
90bf2608 | 31 | #:use-module (guix build-system cmake) |
6a7e1a18 | 32 | #:use-module (guix build-system gnu) |
99e28bbf | 33 | #:use-module (guix build-system glib-or-gtk) |
cb55f9c6 | 34 | #:use-module (guix build-system python) |
6a7e1a18 | 35 | #:use-module (guix download) |
89978a0a | 36 | #:use-module (guix git-download) |
6a7e1a18 | 37 | #:use-module (guix packages) |
f9ff014b | 38 | #:use-module (gnu packages) |
6a7e1a18 | 39 | #:use-module (gnu packages autotools) |
78a81e37 | 40 | #:use-module (gnu packages docbook) |
e8bb4336 | 41 | #:use-module (gnu packages freedesktop) |
6a7e1a18 | 42 | #:use-module (gnu packages gettext) |
e8bb4336 | 43 | #:use-module (gnu packages gl) |
6a7e1a18 EF |
44 | #:use-module (gnu packages glib) |
45 | #:use-module (gnu packages gnome) | |
46 | #:use-module (gnu packages gtk) | |
e8bb4336 | 47 | #:use-module (gnu packages linux) |
78a81e37 | 48 | #:use-module (gnu packages ncurses) |
db913ac4 | 49 | #:use-module (gnu packages perl) |
5ccde207 | 50 | #:use-module (gnu packages perl-check) |
6a7e1a18 | 51 | #:use-module (gnu packages pkg-config) |
cb55f9c6 | 52 | #:use-module (gnu packages python) |
78a81e37 | 53 | #:use-module (gnu packages qt) |
89978a0a | 54 | #:use-module (gnu packages wm) |
78325fa8 | 55 | #:use-module (gnu packages xdisorg) |
7326944b | 56 | #:use-module (gnu packages xml) |
90bf2608 | 57 | #:use-module (gnu packages xorg) |
78325fa8 | 58 | #:use-module (srfi srfi-26)) |
6a7e1a18 EF |
59 | |
60 | (define-public tilda | |
61 | (package | |
62 | (name "tilda") | |
37042a0f | 63 | (version "1.3.3") |
6a7e1a18 EF |
64 | (source (origin |
65 | (method url-fetch) | |
66 | (uri (string-append "https://github.com/lanoxx/tilda/archive/" | |
d2a52108 | 67 | "tilda-" version ".tar.gz")) |
6a7e1a18 EF |
68 | (sha256 |
69 | (base32 | |
37042a0f | 70 | "1cc4qbg1m3i04lj5p6i6xbd0zvy1320pxdgmjhz5p3j95ibsbfki")))) |
99e28bbf | 71 | (build-system glib-or-gtk-build-system) |
6a7e1a18 EF |
72 | (arguments |
73 | `(#:phases (modify-phases %standard-phases | |
74 | (add-before 'patch-source-shebangs 'autogen | |
75 | (lambda _ ; Avoid running ./configure. | |
76 | (substitute* "autogen.sh" | |
77 | (("^.*\\$srcdir/configure.*") "")) | |
78 | (zero? (system* "sh" "autogen.sh"))))))) | |
79 | (native-inputs | |
80 | `(("autoconf" ,autoconf) | |
81 | ("automake" ,automake) | |
b94a6ca0 | 82 | ("gettext" ,gettext-minimal) |
d2a52108 | 83 | ("pkg-config" ,pkg-config))) |
6a7e1a18 | 84 | (inputs |
99e28bbf | 85 | `(("libconfuse" ,libconfuse) |
d2a52108 | 86 | ("vte" ,vte))) |
6a7e1a18 EF |
87 | (synopsis "GTK+-based drop-down terminal") |
88 | (description "Tilda is a terminal emulator similar to normal terminals like | |
89 | gnome-terminal (GNOME) or Konsole (KDE), with the difference that it drops down | |
90 | from the edge of a screen when a certain configurable hotkey is pressed. This | |
91 | is similar to the built-in consoles in some applications. Tilda is highly | |
d1e4ad1b | 92 | configurable through a graphical wizard.") |
6a7e1a18 EF |
93 | (home-page "https://github.com/lanoxx/tilda") |
94 | (license license:gpl2+))) | |
89978a0a MO |
95 | |
96 | (define-public termite | |
97 | (package | |
98 | (name "termite") | |
ebe3515f | 99 | (version "12") |
89978a0a MO |
100 | (source |
101 | (origin | |
102 | (method git-fetch) | |
103 | (uri (git-reference | |
104 | (url (string-append "https://github.com/thestinger/" | |
105 | name ".git")) | |
106 | (commit (string-append "v" version)) | |
107 | (recursive? #t))) | |
108 | (file-name (string-append name "-" version "-checkout")) | |
109 | (sha256 | |
ebe3515f EF |
110 | (base32 |
111 | "0s6dyg3vcqk5qcx90bs24wdnd3p56rdjdcanx4pcxvp6ksjl61jz")))) | |
89978a0a MO |
112 | (build-system gnu-build-system) |
113 | (arguments | |
66bb5db7 EF |
114 | `(#:phases |
115 | (modify-phases %standard-phases | |
116 | (delete 'configure)) | |
89978a0a MO |
117 | #:tests? #f |
118 | ;; This sets the destination when installing the necessary terminal | |
119 | ;; capability data, which are not provided by 'ncurses'. See | |
120 | ;; <https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html>. | |
121 | #:make-flags (list "PREFIX=" | |
122 | (string-append "VERSION=v" (version)) | |
123 | (string-append "DESTDIR=" | |
124 | (assoc-ref %outputs "out"))))) | |
125 | (inputs | |
126 | `(("vte", vte-ng) | |
127 | ("gtk+", gtk+) | |
128 | ("ncurses", ncurses))) | |
129 | (native-inputs | |
130 | `(("pkg-config" ,pkg-config))) | |
131 | ||
132 | ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is | |
133 | ;; provided for usability reasons. See <https://bugs.gnu.org/22138>. | |
134 | (native-search-paths | |
135 | (list (search-path-specification | |
136 | (variable "TERMINFO_DIRS") | |
137 | (files '("share/terminfo"))))) | |
138 | (home-page "https://github.com/thestinger/termite/") | |
139 | (synopsis "Keyboard-centric, VTE-based terminal") | |
140 | (description "Termite is a minimal terminal emulator designed for use with | |
141 | tiling window managers. It is a modal application, similar to Vim, with an | |
142 | insert mode and command mode where keybindings have different functions.") | |
143 | ||
144 | ;; Files under util/ are under the Expat license; the rest is LGPLv2+. | |
145 | (license license:lgpl2.0+))) | |
cb55f9c6 AG |
146 | |
147 | (define-public asciinema | |
148 | (package | |
149 | (name "asciinema") | |
98b9732c | 150 | (version "1.4.0") |
cb55f9c6 AG |
151 | (source |
152 | (origin | |
153 | (method url-fetch) | |
98b9732c | 154 | (uri (pypi-uri "asciinema" version)) |
cb55f9c6 AG |
155 | (sha256 |
156 | (base32 | |
98b9732c | 157 | "1jrf8c8711gkdilmvyv3d37kp8xfvdc5cqighw5k92a6g9z4acgv")))) |
cb55f9c6 AG |
158 | (build-system python-build-system) |
159 | (arguments | |
160 | `(#:phases | |
161 | (modify-phases %standard-phases | |
162 | (add-before 'build 'patch-exec-paths | |
163 | (lambda* (#:key inputs #:allow-other-keys) | |
164 | (let ((ncurses (assoc-ref inputs "ncurses"))) | |
165 | (substitute* "asciinema/recorder.py" | |
166 | (("'tput'") | |
167 | (string-append "'" ncurses "/bin/tput'")))) | |
168 | #t))))) | |
f3b98f4f | 169 | (inputs `(("ncurses" ,ncurses))) |
39d0de33 MB |
170 | (native-inputs |
171 | ;; For tests. | |
172 | `(("python-requests" ,python-requests))) | |
cb55f9c6 AG |
173 | (home-page "https://asciinema.org") |
174 | (synopsis "Terminal session recorder") | |
175 | (description | |
176 | "Use asciinema to record and share your terminal sessions, the right way. | |
177 | Forget screen recording apps and blurry video. Enjoy a lightweight, purely | |
178 | text-based approach to terminal recording.") | |
179 | (license license:gpl3))) | |
af39609b DC |
180 | |
181 | (define-public libtsm | |
182 | (package | |
183 | (name "libtsm") | |
184 | (version "3") | |
185 | (source (origin | |
186 | (method url-fetch) | |
187 | (uri (string-append | |
188 | "https://freedesktop.org/software/kmscon/releases/" | |
189 | "libtsm-" version ".tar.xz")) | |
190 | (sha256 | |
191 | (base32 | |
192 | "01ygwrsxfii0pngfikgqsb4fxp8n1bbs47l7hck81h9b9bc1ah8i")))) | |
193 | (build-system gnu-build-system) | |
194 | (native-inputs | |
195 | `(("pkg-config" ,pkg-config))) | |
196 | (inputs | |
197 | `(("libxkbcommon" ,libxkbcommon))) | |
198 | (synopsis "Xterm state machine library") | |
199 | (description "TSM is a state machine for DEC VT100-VT520 compatible | |
200 | terminal emulators. It tries to support all common standards while keeping | |
201 | compatibility to existing emulators like xterm, gnome-terminal, konsole, etc.") | |
202 | (home-page "https://www.freedesktop.org/wiki/Software/libtsm") | |
d7af202b DC |
203 | ;; Hash table implementation is lgpl2.1+ licensed. |
204 | ;; The wcwidth implementation in external/wcwidth.{h,c} uses a license | |
205 | ;; derived from ISC. | |
206 | ;; UCS-4 to UTF-8 encoding is copied from "terminology" which is released | |
207 | ;; under the bsd 2 license. | |
208 | (license (list license:expat license:lgpl2.1+ license:isc license:bsd-2)))) | |
e8bb4336 DC |
209 | |
210 | (define-public kmscon | |
211 | (package | |
212 | (name "kmscon") | |
213 | (version "8") | |
214 | (source (origin | |
215 | (method url-fetch) | |
216 | (uri (string-append | |
217 | "https://freedesktop.org/software/kmscon/releases/" | |
218 | "kmscon-" version ".tar.xz")) | |
219 | (sha256 | |
220 | (base32 | |
5acf00f9 LC |
221 | "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a")) |
222 | (modules '((guix build utils))) | |
223 | (snippet | |
224 | ;; Use elogind instead of systemd. | |
225 | '(begin | |
226 | (substitute* "configure" | |
227 | (("libsystemd-daemon libsystemd-login") | |
228 | "libelogind")) | |
229 | (substitute* "src/uterm_systemd.c" | |
230 | (("#include <systemd/sd-login.h>") | |
231 | "#include <elogind/sd-login.h>") | |
232 | ;; We don't have this header. | |
233 | (("#include <systemd/sd-daemon\\.h>") | |
234 | "") | |
235 | ;; Replace the call to 'sd_booted' by the truth value. | |
236 | (("sd_booted\\(\\)") | |
237 | "1")))))) | |
e8bb4336 DC |
238 | (build-system gnu-build-system) |
239 | (native-inputs | |
7326944b LC |
240 | `(("pkg-config" ,pkg-config) |
241 | ("libxslt" ,libxslt) ;to build the man page | |
242 | ("libxml2" ,libxml2) ;for XML_CATALOG_FILES | |
243 | ("docbook-xsl" ,docbook-xsl))) | |
e8bb4336 | 244 | (inputs |
c2ffcc44 | 245 | `(("libdrm" ,libdrm) |
e8bb4336 DC |
246 | ("libtsm" ,libtsm) |
247 | ("libxkbcommon" ,libxkbcommon) | |
248 | ("logind" ,elogind) | |
249 | ("mesa" ,mesa) | |
250 | ("pango" ,pango) | |
251 | ("udev" ,eudev))) | |
78325fa8 LC |
252 | (synopsis "Linux KMS-based terminal emulator") |
253 | (description "Kmscon is a terminal emulator based on Linux's @dfn{kernel | |
254 | mode setting} (KMS). It can replace the in-kernel virtual terminal (VT) | |
255 | implementation with a user-space console. Compared to the Linux console, | |
256 | kmscon provides enhanced features including XKB-compatible internationalized | |
257 | keyboard support, UTF-8 input/font support, hardware-accelerated rendering, | |
258 | multi-seat support, a replacement for @command{mingetty}, and more.") | |
e8bb4336 | 259 | (home-page "https://www.freedesktop.org/wiki/Software/kmscon") |
3eb2fca6 DC |
260 | ;; Hash table implementation is lgpl2.1+ licensed. |
261 | ;; The wcwidth implementation in external/wcwidth.{h,c} uses a license | |
262 | ;; derived from ISC. | |
263 | ;; UCS-4 to UTF-8 encoding is copied from "terminology" which is released | |
264 | ;; under the bsd 2 license. | |
265 | ;; Unifont-Font is from http://unifoundry.com/unifont.html and licensed | |
266 | ;; under the terms of the GNU GPL. | |
78325fa8 LC |
267 | (license (list license:expat license:lgpl2.1+ license:bsd-2 |
268 | license:gpl2+)) | |
269 | (supported-systems (filter (cut string-suffix? "-linux" <>) | |
270 | %supported-systems)))) | |
a3af70ac | 271 | |
db913ac4 JMSG |
272 | (define-public libtermkey |
273 | (package | |
274 | (name "libtermkey") | |
b5b46f87 | 275 | (version "0.20") |
db913ac4 JMSG |
276 | (source (origin |
277 | (method url-fetch) | |
278 | (uri (string-append "http://www.leonerd.org.uk/code/" | |
279 | name "/" name "-" version ".tar.gz")) | |
280 | (sha256 | |
b5b46f87 | 281 | (base32 "1xfj6lchhfljmbcl6dz8dpakppyy13nbl4ykxiv5x4dr9b4qf3bc")))) |
db913ac4 JMSG |
282 | (build-system gnu-build-system) |
283 | (arguments | |
284 | '(#:make-flags (list | |
285 | "CC=gcc" | |
286 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
287 | #:phases (modify-phases %standard-phases | |
288 | (delete 'configure)) | |
289 | #:test-target "test")) | |
290 | (inputs `(("ncurses", ncurses))) | |
291 | (native-inputs `(("libtool", libtool) | |
292 | ("perl-test-harness" ,perl-test-harness) | |
293 | ("pkg-config", pkg-config))) | |
294 | (synopsis "Keyboard entry processing library for terminal-based programs") | |
295 | (description | |
296 | "Libtermkey handles all the necessary logic to recognise special keys, UTF-8 | |
297 | combining, and so on, with a simple interface.") | |
298 | (home-page "http://www.leonerd.org.uk/code/libtermkey") | |
299 | (license license:expat))) | |
300 | ||
a3af70ac DC |
301 | (define-public picocom |
302 | (package | |
303 | (name "picocom") | |
d0cddec2 | 304 | (version "2.2") |
a3af70ac DC |
305 | (source (origin |
306 | (method url-fetch) | |
307 | (uri (string-append | |
308 | "https://github.com/npat-efault/picocom" | |
309 | "/archive/" version ".tar.gz")) | |
310 | (file-name (string-append name "-" version ".tar.gz")) | |
311 | (sha256 | |
312 | (base32 | |
d0cddec2 | 313 | "1knl6dglnrynx1fhy21nylw56i1q3dkizkgxzkq42mb7ilah8f9y")))) |
a3af70ac DC |
314 | (build-system gnu-build-system) |
315 | (arguments | |
316 | `(#:make-flags '("CC=gcc") | |
317 | #:tests? #f ; No tests | |
318 | #:phases | |
319 | (modify-phases %standard-phases | |
320 | (delete 'configure) | |
321 | (replace 'install | |
322 | (lambda* (#:key outputs #:allow-other-keys) | |
323 | (let* ((out (assoc-ref outputs "out")) | |
324 | (bin (string-append out "/bin")) | |
325 | (man (string-append out "/share/man/man1"))) | |
326 | (install-file "picocom" bin) | |
327 | (install-file "picocom.1" man))))))) | |
328 | (home-page "https://github.com/npat-efault/picocom") | |
329 | (synopsis "Minimal dumb-terminal emulation program") | |
330 | (description "It was designed to serve as a simple, manual, modem | |
331 | configuration, testing, and debugging tool. It has also serves well | |
332 | as a low-tech serial communications program to allow access to all | |
333 | types of devices that provide serial consoles.") | |
334 | (license license:gpl2+))) | |
abe2ec73 JMSG |
335 | |
336 | (define-public beep | |
337 | (package | |
338 | (name "beep") | |
339 | (version "1.3") | |
340 | (source (origin | |
341 | (method url-fetch) | |
342 | (uri (string-append "http://www.johnath.com/" name "/" | |
343 | name "-" version ".tar.gz")) | |
344 | (sha256 | |
345 | (base32 | |
346 | "0bgch6jq5cahakk3kbr9549iysf2dik09afixxy5brbxk1xfzb2r")))) | |
347 | (build-system gnu-build-system) | |
348 | (arguments | |
349 | `(#:tests? #f ; no tests. | |
350 | #:phases | |
351 | (modify-phases %standard-phases | |
352 | (delete 'configure) | |
353 | (add-after 'unpack 'patch-makefile | |
354 | (lambda* (#:key outputs #:allow-other-keys) | |
12c15242 TGR |
355 | (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) |
356 | #t)) | |
abe2ec73 JMSG |
357 | (add-before 'install 'create-output-directories |
358 | (lambda* (#:key outputs #:allow-other-keys) | |
359 | (let ((out (assoc-ref %outputs "out"))) | |
360 | (mkdir-p (string-append out "/bin")) | |
361 | (mkdir-p (string-append out "/man/man1")))))))) | |
362 | (synopsis "Linux command-line utility to control the PC speaker") | |
363 | (description "beep allows the user to control the PC speaker with precision, | |
364 | allowing different sounds to indicate different events. While it can be run | |
365 | quite happily on the command line, its intended place of residence is within | |
366 | scripts, notifying the user when something interesting occurs. Of course, it | |
367 | has no notion of what's interesing, but it's very good at that notifying part.") | |
368 | (home-page "http://www.johnath.com/beep") | |
369 | (license license:gpl2+))) | |
f2b7be09 RW |
370 | |
371 | (define-public unibilium | |
372 | (package | |
373 | (name "unibilium") | |
374 | (version "1.2.0") | |
375 | (source | |
376 | (origin | |
377 | (method url-fetch) | |
378 | (uri (string-append "https://github.com/mauke/unibilium/" | |
379 | "archive/v" version ".tar.gz")) | |
380 | (file-name (string-append name "-" version ".tar.gz")) | |
381 | (sha256 | |
382 | (base32 | |
383 | "1n7a0jrlwhn9nnkna76sbnjrr808m0pmzbiwznmp7rhmjl4z2fk2")))) | |
384 | (build-system gnu-build-system) | |
385 | (arguments | |
386 | `(#:make-flags | |
387 | (list "CC=gcc" | |
388 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
389 | #:test-target "test" | |
390 | ;; FIXME: tests require "prove" | |
391 | #:tests? #f | |
392 | #:phases | |
393 | (modify-phases %standard-phases | |
394 | (delete 'configure)))) | |
395 | (native-inputs | |
396 | `(("libtool" ,libtool))) | |
397 | (home-page "https://github.com/mauke/unibilium") | |
398 | (synopsis "Terminfo parsing library") | |
399 | (description "Unibilium is a basic C terminfo library. It doesn't depend | |
400 | on curses or any other library. It also doesn't use global variables, so it | |
401 | should be thread-safe.") | |
402 | (license license:lgpl3+))) | |
ee869cd6 RW |
403 | |
404 | (define-public libvterm | |
405 | (package | |
406 | (name "libvterm") | |
407 | (version "0+bzr681") | |
408 | (source | |
409 | (origin | |
410 | (method url-fetch) | |
411 | (uri (string-append "http://www.leonerd.org.uk/code/libvterm/" | |
412 | "libvterm-" version ".tar.gz")) | |
413 | (sha256 | |
414 | (base32 | |
415 | "1s56c8p1qz6frkcri0hg4qyydv2wcccj6n2xmz1dwcdqn38ldsmb")))) | |
416 | (build-system gnu-build-system) | |
417 | (arguments | |
418 | `(#:make-flags | |
419 | (list "CC=gcc" | |
420 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
421 | #:test-target "test" | |
422 | #:phases | |
423 | (modify-phases %standard-phases | |
424 | (delete 'configure)))) | |
425 | (native-inputs | |
426 | `(("libtool" ,libtool) | |
427 | ("perl" ,perl))) | |
428 | (home-page "http://www.leonerd.org.uk/code/libvterm/") | |
429 | (synopsis "VT220/xterm/ECMA-48 terminal emulator library") | |
430 | (description "Libvterm is an abstract C99 library which implements a VT220 | |
431 | or xterm-like terminal emulator. It doesn't use any particular graphics | |
432 | toolkit or output system, instead it invokes callback function pointers that | |
433 | its embedding program should provide it to draw on its behalf. It avoids | |
434 | calling @code{malloc} during normal running state, allowing it to be used in | |
435 | embedded kernel situations.") | |
436 | (license license:expat))) | |
f9ff014b P |
437 | |
438 | (define-public cool-retro-term | |
439 | (let ((commit "e48719fa44e5307df71dbd0fad234f8a6a53f863") | |
440 | (revision "1")) | |
441 | (package | |
442 | (name "cool-retro-term") | |
443 | (version (string-append "1.0.0-" revision "." (string-take commit 7))) | |
444 | (source (origin | |
445 | (method git-fetch) | |
446 | (file-name (string-append name "-" version "-checkout")) | |
447 | (uri (git-reference | |
448 | (url (string-append "https://github.com/Swordfish90/" name)) | |
449 | (commit commit) | |
450 | (recursive? #t))) | |
451 | (sha256 | |
452 | (base32 "1sgqbirninkvgwchr35zgn5vzqvsmrf3cp7lqady1xgrawb8lsz3")) | |
453 | (patches | |
454 | (search-patches "cool-retro-term-remove-non-free-fonts.patch" | |
455 | "cool-retro-term-fix-array-size.patch" | |
456 | "cool-retro-term-dont-check-uninit-member.patch" | |
457 | "cool-retro-term-memory-leak-1.patch")) | |
458 | (modules '((guix build utils))) | |
459 | (snippet | |
460 | '(for-each (lambda (font) | |
461 | (delete-file-recursively | |
462 | (string-append "app/qml/fonts/" font)) | |
463 | (substitute* '("app/qml/resources.qrc") | |
464 | (((string-append "<file>fonts/" font ".*")) | |
465 | ""))) | |
466 | '(;"1971-ibm-3278" ; BSD 3-clause | |
467 | "1977-apple2" ; Non-Free | |
468 | "1977-commodore-pet" ; Non-Free | |
469 | "1979-atari-400-800" ; Non-Free | |
470 | "1982-commodore64" ; Non-Free | |
471 | "1985-atari-st" ; ? | |
472 | "1985-ibm-pc-vga" ; Unclear | |
473 | ;"modern-fixedsys-excelsior" ; Redistributable | |
474 | ;"modern-hermit" ; SIL | |
475 | ;"modern-inconsolata"; SIL | |
476 | ;"modern-pro-font-win-tweaked" ; X11 | |
477 | ;"modern-proggy-tiny"; X11 | |
478 | ;"modern-terminus" ; SIL | |
479 | "modern-monaco"))))) ; Apple non-free | |
480 | (build-system gnu-build-system) | |
481 | (inputs | |
482 | `(("qtbase" ,qtbase) | |
483 | ("qtdeclarative" ,qtdeclarative) | |
484 | ("qtgraphicaleffects" ,qtgraphicaleffects) | |
485 | ("qtquickcontrols" ,qtquickcontrols))) | |
486 | (arguments | |
487 | `(#:phases | |
488 | (modify-phases %standard-phases | |
489 | (replace 'configure | |
490 | (lambda* (#:key outputs #:allow-other-keys) | |
491 | (let* ((out (assoc-ref outputs "out")) | |
492 | (share (string-append out "/share"))) | |
493 | (substitute* '("qmltermwidget/qmltermwidget.pro") | |
494 | (("INSTALL_DIR = \\$\\$\\[QT_INSTALL_QML\\]") | |
495 | (string-append "INSTALL_DIR = " out "/qml"))) | |
496 | (substitute* '("app/app.pro") | |
497 | (("target.path \\+= /usr") | |
498 | (string-append "target.path += " out)) | |
499 | (("icon32.path = /usr/share") | |
500 | (string-append "icon32.path = " share)) | |
501 | (("icon64.path = /usr/share") | |
502 | (string-append "icon64.path = " share)) | |
503 | (("icon128.path = /usr/share") | |
504 | (string-append "icon128.path = " share)) | |
505 | (("icon256.path = /usr/share") | |
506 | (string-append "icon256.path = " share))) | |
507 | (zero? (system* "qmake"))))) | |
508 | (add-before 'install 'fix-Makefiles | |
509 | (lambda* (#:key outputs #:allow-other-keys) | |
510 | (let* ((out (assoc-ref outputs "out"))) | |
511 | (substitute* '("Makefile") | |
512 | (("\\$\\(INSTALL_ROOT\\)/usr") out))))) | |
513 | (add-after 'install 'wrap-executable | |
514 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
515 | (let* ((out (assoc-ref outputs "out")) | |
516 | (qml "/qml")) | |
517 | (wrap-program (string-append out "/bin/cool-retro-term") | |
518 | `("QML2_IMPORT_PATH" ":" prefix | |
519 | (,(string-append out qml) | |
520 | ,(string-append | |
521 | (assoc-ref inputs "qtdeclarative") qml) | |
522 | ,(string-append | |
523 | (assoc-ref inputs "qtgraphicaleffects") qml) | |
524 | ,(string-append | |
525 | (assoc-ref inputs "qtquickcontrols") qml))))))) | |
526 | (add-after 'install 'add-alternate-name | |
527 | (lambda* (#:key outputs #:allow-other-keys) | |
528 | (let* ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
529 | (symlink (string-append bin "/cool-retro-term") | |
530 | (string-append bin "/crt")))))))) | |
531 | (synopsis "Terminal emulator") | |
532 | (description | |
533 | "Cool-retro-term (crt) is a terminal emulator which mimics the look and | |
534 | feel of the old cathode ray tube (CRT) screens. It has been designed to be | |
535 | eye-candy, customizable, and reasonably lightweight.") | |
536 | (home-page "https://github.com/Swordfish90/cool-retro-term") | |
537 | (license (list | |
538 | license:gpl2+ ; qmltermwidget | |
539 | license:gpl3+ ; cool-retro-term | |
540 | ;; Fonts | |
541 | license:silofl1.1 | |
542 | license:x11 | |
543 | license:bsd-3))))) | |
90bf2608 KK |
544 | |
545 | (define-public sakura | |
546 | (package | |
547 | (name "sakura") | |
548 | (version "3.5.0") | |
549 | (source (origin | |
550 | (method url-fetch) | |
551 | (uri (string-append "https://launchpad.net/" name "/trunk/" | |
552 | version "/+download/" name "-" version | |
553 | ".tar.bz2")) | |
554 | (sha256 | |
555 | (base32 | |
556 | "0fhcn3540iw22l5zg3njh5z8cj0g2n9p6fvagjqa5zc323jfsc7b")))) | |
557 | (build-system cmake-build-system) | |
558 | (arguments | |
559 | ;; no check phase | |
560 | '(#:tests? #f)) | |
561 | (native-inputs | |
562 | `(("gettext" ,gettext-minimal) | |
563 | ("perl" ,perl) ; for pod2man | |
564 | ("pkg-config" ,pkg-config))) | |
565 | (inputs | |
566 | `(("libxft" ,libxft) | |
567 | ("vte" ,vte))) | |
568 | (home-page "https://launchpad.net/sakura") | |
569 | (synopsis "A simple but powerful libvte-based terminal emulator") | |
570 | (description "@code{Sakura} is a terminal emulator based on GTK+ and VTE. | |
571 | It's a terminal emulator with few dependencies, so you don't need a full GNOME | |
572 | desktop installed to have a decent terminal emulator.") | |
573 | (license license:gpl2))) |