gnu: sbcl-cl-cffi-gtk: Update to 20200417.
[jackhill/guix/guix.git] / gnu / packages / tmux.scm
CommitLineData
b1426f17
CR
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
8a0ac5bd 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
cdd8e077 4;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
9b323c25 5;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
6c8b802f 6;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
7bef8fd5 7;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
e80a809f 8;;; Copyright © 2019 Oleg Pykhalov <go.wigust@gmail.com>
80e0e112 9;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
b1426f17
CR
10;;;
11;;; This file is part of GNU Guix.
12;;;
13;;; GNU Guix is free software; you can redistribute it and/or modify it
14;;; under the terms of the GNU General Public License as published by
15;;; the Free Software Foundation; either version 3 of the License, or (at
16;;; your option) any later version.
17;;;
18;;; GNU Guix is distributed in the hope that it will be useful, but
19;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21;;; GNU General Public License for more details.
22;;;
23;;; You should have received a copy of the GNU General Public License
24;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
26(define-module (gnu packages tmux)
41ee3773 27 #:use-module ((guix licenses) #:prefix license:)
b1426f17
CR
28 #:use-module (guix packages)
29 #:use-module (guix download)
cdd8e077 30 #:use-module (guix git-download)
b1426f17 31 #:use-module (guix build-system gnu)
e80a809f 32 #:use-module (guix build-system trivial)
b1426f17 33 #:use-module (gnu packages)
e80a809f 34 #:use-module (gnu packages bash)
b1426f17
CR
35 #:use-module (gnu packages libevent)
36 #:use-module (gnu packages ncurses))
37
cdd8e077 38
b1426f17
CR
39(define-public tmux
40 (package
41 (name "tmux")
80e0e112 42 (version "3.1b")
b1426f17
CR
43 (source (origin
44 (method url-fetch)
45 (uri (string-append
9a59673d 46 "https://github.com/tmux/tmux/releases/download/"
b1426f17
CR
47 version "/tmux-" version ".tar.gz"))
48 (sha256
49 (base32
80e0e112 50 "1fbd93hzaz64h7j0h9nsll29avbq1ikqa438wrgsf1dga0fkagyr"))))
b1426f17
CR
51 (build-system gnu-build-system)
52 (inputs
53 `(("libevent" ,libevent)
54 ("ncurses" ,ncurses)))
b5b4d912 55 (home-page "https://tmux.github.io/")
9e771e3b 56 (synopsis "Terminal multiplexer")
b1426f17
CR
57 (description
58 "tmux is a terminal multiplexer: it enables a number of terminals (or
59windows), each running a separate program, to be created, accessed, and
e881752c 60controlled from a single screen. tmux may be detached from a screen and
b1426f17 61continue running in the background, then later reattached.")
41ee3773 62 (license license:isc)))
cdd8e077
MJ
63
64(define-public tmux-themepack
65 (let ((commit "03a372866f7677f7fe63bcee140b48b9fd372c48")
66 (revision "1"))
67 (package
68 (name "tmux-themepack")
7bef8fd5 69 (version (git-version "0.0.0" revision commit)) ; no version tags
cdd8e077
MJ
70 (source (origin
71 (method git-fetch)
72 (uri (git-reference
7bef8fd5 73 (url "https://github.com/jimeh/tmux-themepack.git")
cdd8e077
MJ
74 (commit commit)))
75 (sha256
76 (base32
77 "1d3k87mq5lca042jbap5kxskjy3kg79wjhhpnm6jacbn3anc67zl"))
7bef8fd5 78 (file-name (git-file-name name version))))
cdd8e077
MJ
79 (build-system gnu-build-system)
80 (arguments
7bef8fd5 81 `(#:tests? #f ; no test suite
cdd8e077
MJ
82 #:phases (modify-phases %standard-phases
83 (delete 'configure)
84 (delete 'build)
85 (replace 'install
86 (lambda* (#:key outputs #:allow-other-keys)
87 (let* ((out (string-append
88 (assoc-ref outputs "out")
89 "/share/" ,name "-" ,version)))
90 (copy-recursively "." out)))))))
91 (home-page "https://github.com/jimeh/tmux-themepack")
92 (synopsis "Collection of themes for Tmux")
93 (description "A collection of various themes for Tmux.")
6f38ef73 94 (license license:wtfpl2))))
6c8b802f
SR
95
96(define-public tmuxifier
97 (package
98 (name "tmuxifier")
99 (version "0.13.0")
100 (source (origin
66377fdc
TGR
101 (method git-fetch)
102 (uri (git-reference
103 (url "https://github.com/jimeh/tmuxifier.git")
104 (commit (string-append "v" version))))
105 (file-name (git-file-name name version))
6c8b802f
SR
106 (sha256
107 (base32
66377fdc 108 "1b6a1cw2mnml84k5vhbcp58kvp94xlnlpp4kwdhqw4jrzfgcjfzd"))))
6c8b802f
SR
109 (build-system gnu-build-system)
110 (arguments
111 `(#:tests? #f
112 #:phases (modify-phases %standard-phases
113 (delete 'configure)
114 (delete 'build)
115 (replace 'install
116 (lambda* (#:key outputs #:allow-other-keys)
117 (let* ((out (assoc-ref %outputs "out"))
118 (bindir (string-append out "/bin"))
119 (share (string-append out "/share/" ,name)))
120 (install-file "bin/tmuxifier" bindir)
121 (substitute* (string-append bindir "/tmuxifier")
122 (("set -e")
123 (string-append "TMUXIFIER=" share "\nset -e")))
124 (for-each (lambda (init-script)
125 (install-file init-script (string-append
126 share "/init")))
127 '("init.sh" "init.tcsh" "init.fish"))
128 (for-each (lambda (dir)
129 (copy-recursively dir (string-append
130 share "/" dir)))
131 '("completion" "lib" "libexec"
132 "templates"))))))))
133 (home-page "https://github.com/jimeh/tmuxifier")
134 (synopsis "Powerful session, window & pane management for Tmux")
135 (description "Tmuxifier allows you to easily create, edit, and load
136@code{layout} files, which are simple shell scripts where you use the tmux
137command and helper commands provided by tmuxifier to manage Tmux sessions and
138windows.")
41ee3773 139 (license license:expat)))
e80a809f
OP
140
141(define-public tmux-xpanes
142 (package
143 (name "tmux-xpanes")
b5efe22a 144 (version "4.1.1")
e80a809f
OP
145 (source (origin
146 (method git-fetch)
147 (uri (git-reference
148 (url "https://github.com/greymd/tmux-xpanes.git")
149 (commit (string-append "v" version))))
150 (file-name (git-file-name name version))
151 (sha256
152 (base32
b5efe22a 153 "13q02vdk229chgbn547wwv29cj4njvz02lmw840g8qmwh73qb2pi"))))
e80a809f
OP
154 (build-system trivial-build-system)
155 (inputs
156 `(("bash" ,bash)))
157 (arguments
158 `(#:modules ((guix build utils))
159 #:builder
160 (begin
161 (use-modules (guix build utils))
162 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") "/bin"))
163 (copy-recursively (assoc-ref %build-inputs "source") ".")
164 (substitute* "bin/xpanes"
165 (("/bin/bash") (which "bash")))
166 (install-file "bin/xpanes" (string-append %output "/bin"))
167 (install-file "man/xpanes.1" (string-append %output "/man/man1"))
168 #t)))
169 (home-page "https://github.com/greymd/tmux-xpanes")
170 (synopsis "Tmux based terminal divider")
171 (description "This package provides tmux-based terminal divider.
172
173@code{xpanes} or @code{tmux-xpanes} (alias of @code{xpanes}) commands have
174following features:
175
176@itemize
177@item Split tmux window into multiple panes.
178@item Build command lines & execute them on the panes.
179@item Runnable from outside of tmux session.
180@item Runnable from inside of tmux session.
181@item Record operation log.
182@item Flexible layout arrangement for panes.
183@item Display pane title on each pane.
184@item Generate command lines from standard input (Pipe mode).
185@end itemize")
41ee3773 186 (license license:expat)))