gnu: libtasn1: Remove obsolete patch.
[jackhill/guix/guix.git] / gnu / packages / screen.scm
CommitLineData
6c3a7204
CR
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
f6b272fa 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
b95bcb8a 4;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
7c524e0f 5;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
334c00f2 6;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
20885132 7;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
6c3a7204
CR
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages screen)
0aa872ea 25 #:use-module (srfi srfi-1)
6c3a7204
CR
26 #:use-module (guix licenses)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix build-system gnu)
30 #:use-module (gnu packages)
31 #:use-module (gnu packages ncurses)
5a72e466 32 #:use-module (gnu packages perl)
b95bcb8a
EB
33 #:use-module (gnu packages python)
34 #:use-module (gnu packages slang)
5a72e466 35 #:use-module (gnu packages texinfo))
6c3a7204
CR
36
37(define-public screen
38 (package
39 (name "screen")
13e4a6c8 40 (version "4.5.1")
6c3a7204
CR
41 (source (origin
42 (method url-fetch)
abc00dc4 43 (uri (string-append "mirror://gnu/screen/screen-"
6c3a7204 44 version ".tar.gz"))
ea240de4 45 (patches (search-patches "screen-fix-info-syntax-error.patch"))
6c3a7204 46 (sha256
13e4a6c8 47 (base32 "0bbv16gpxrh64sn4bvjy3qjy7jsxjlqlilyysin02fwnvla23nwp"))))
6c3a7204 48 (build-system gnu-build-system)
5a72e466
SB
49 (native-inputs
50 `(("makeinfo" ,texinfo)))
6c3a7204 51 (inputs
b3546174 52 `(("ncurses" ,ncurses)
6c3a7204 53 ("perl" ,perl)))
f6b272fa
MW
54 (arguments
55 `(#:configure-flags
66f8f5f9
LC
56 ;; By default, screen supports 16 colors, but we want 256 when
57 ;; ~/.screenrc contains 'term xterm-256color'.
58 '("--enable-colors256")))
7c524e0f 59 (home-page "https://www.gnu.org/software/screen/")
f50d2669 60 (synopsis "Full-screen window manager providing multiple terminals")
6c3a7204 61 (description
79c311b8
LC
62 "GNU Screen is a terminal window manager that multiplexes a single
63terminal between several processes. The virtual terminals each provide
64features such as a scroll-back buffer and a copy-and-paste mechanism. Screen
65then manages the different virtual terminals, allowing you to easily switch
66between them, to detach them from the current session, or even splitting the
67view to show two terminals at once.")
c4854e76 68 (license gpl2+)))
f4eae897
DT
69
70(define-public dtach
71 (package
72 (name "dtach")
4b23c4b3 73 (version "0.9")
f4eae897
DT
74 (source (origin
75 (method url-fetch)
de67e922
LF
76 (uri (string-append "mirror://sourceforge/" name "/" name "/"
77 version "/" name "-" version ".tar.gz"))
f4eae897
DT
78 (sha256
79 (base32
4b23c4b3 80 "1wwj2hlngi8qn2pisvhyfxxs8gyqjlgrrv5lz91w8ly54dlzvs9j"))))
f4eae897
DT
81 (build-system gnu-build-system)
82 (arguments
83 ;; No install target.
f228aa15
EF
84 '(#:phases
85 (modify-phases %standard-phases
86 (replace 'install
87 (lambda* (#:key outputs #:allow-other-keys)
88 (let ((out (assoc-ref outputs "out")))
89 (install-file "dtach" (string-append out "/bin"))))))
f4eae897
DT
90 ;; No check target.
91 #:tests? #f))
92 (home-page "http://dtach.sourceforge.net/")
93 (synopsis "Emulates the detach feature of screen")
94 (description
95 "dtach is a tiny program that emulates the detach feature of screen,
96allowing you to run a program in an environment that is protected from the
97controlling terminal and attach to it later.")
98 (license gpl2+)))
b95bcb8a
EB
99
100(define-public byobu
101 (package
102 (name "byobu")
103 (version "5.98")
104 (source
105 (origin
106 (method url-fetch)
107 (uri (string-append "https://launchpad.net/byobu/trunk/"
108 version "/+download/byobu_"
109 version ".orig.tar.gz"))
110 (sha256
111 (base32
112 "1s8nh4wbds1nh52i0d1hy1b308jjf4siwpq92lna1zh9ll4x71j5"))
fc1adab1 113 (patches (search-patches "byobu-writable-status.patch"))))
b95bcb8a
EB
114 (build-system gnu-build-system)
115 (inputs
116 `(("python" ,python-wrapper) ;for config and session GUIs
117 ("python-newt" ,newt "python")))
118 (arguments
119 `(#:phases
120 (modify-phases %standard-phases
121 (add-before
122 'configure 'provide-locale
123 (lambda* (#:key inputs #:allow-other-keys)
124 (let ((libc (assoc-ref inputs "libc"))) ;implicit input
125 (substitute* "usr/bin/byobu.in"
126 (("locale") (string-append libc "/bin/locale"))))))
127 (add-after
128 'install 'wrap-python-scripts
129 (lambda* (#:key inputs outputs #:allow-other-keys)
130 (let* ((python (string-append (assoc-ref inputs "python")
131 "/bin/python"))
132 (out (assoc-ref outputs "out"))
133 (config (string-append out "/bin/byobu-config"))
134 (select (string-append out "/bin/byobu-select-session")))
135 (wrap-program config
136 `("BYOBU_PYTHON" = (,python))
137 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
138 (wrap-program select
139 `("BYOBU_PYTHON" = (,python)))
140 #t))))))
141 (home-page "http://byobu.co/index.html")
142 (synopsis "Text-based window manager and terminal multiplexer")
143 (description
144 "Byobu is a Japanese term for decorative, multi-panel screens that serve
145as folding room dividers. The Byobu software includes an enhanced profile,
146configuration utilities, and system status notifications for the GNU Screen
147window manager as well as the Tmux terminal multiplexer.")
148 (license gpl3+)))
334c00f2
AG
149
150(define-public reptyr
151 (package
152 (name "reptyr")
153 (version "0.6.2")
154 (source
155 (origin
156 (method url-fetch)
157 (uri (string-append "https://github.com/nelhage/reptyr/archive"
158 "/reptyr-" version ".tar.gz"))
20885132
MO
159 ;; XXX: To be removed on next reptyr release.
160 (patches (search-patches "reptyr-fix-gcc-7.patch"))
334c00f2
AG
161 (sha256
162 (base32
163 "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7"))))
164 (build-system gnu-build-system)
165 (arguments
166 '(#:tests? #f ; no tests
167 #:make-flags (list "CC=gcc"
168 (string-append "PREFIX=" %output))
169 #:phases (modify-phases %standard-phases (delete 'configure))))
170 (home-page "https://github.com/nelhage/reptyr")
171 (synopsis "Tool for reparenting a running program to a new terminal")
172 (description
173 "reptyr is a utility for taking an existing running program and attaching
174it to a new terminal. Started a long-running process over @code{ssh}, but have
175to leave and don't want to interrupt it? Just start a @code{screen}, use
176reptyr to grab it, and then kill the @code{ssh} session and head on home.")
0aa872ea
EF
177 ;; Reptyr currently does not support mips or aarch64.
178 (supported-systems (fold delete %supported-systems
179 '("mips64el-linux" "aarch64-linux")))
334c00f2 180 (license expat)))