1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
5 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
6 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
8 ;;; This file is part of GNU Guix.
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.
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.
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/>.
23 (define-module (gnu packages tmux)
24 #:use-module (guix licenses)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix git-download)
28 #:use-module (guix build-system gnu)
29 #:use-module (gnu packages)
30 #:use-module (gnu packages libevent)
31 #:use-module (gnu packages ncurses))
41 "https://github.com/tmux/tmux/releases/download/"
42 version "/tmux-" version ".tar.gz"))
45 "1fm22wva2znkcs5jczrnlxrpzsk2jlwdwy4dhzzyrbsgccsz6svz"))))
46 (build-system gnu-build-system)
48 `(("libevent" ,libevent)
49 ("ncurses" ,ncurses)))
50 (home-page "http://tmux.github.io/")
51 (synopsis "Terminal multiplexer")
53 "tmux is a terminal multiplexer: it enables a number of terminals (or
54 windows), each running a separate program, to be created, accessed, and
55 controlled from a single screen. tmux may be detached from a screen and
56 continue running in the background, then later reattached.")
59 (define-public tmux-themepack
60 (let ((commit "03a372866f7677f7fe63bcee140b48b9fd372c48")
63 (name "tmux-themepack")
65 (string-append "0.0.0-" revision "." (string-take commit 7))) ;; No version tags
70 (string-append "https://github.com/jimeh/" name ".git"))
74 "1d3k87mq5lca042jbap5kxskjy3kg79wjhhpnm6jacbn3anc67zl"))
75 (file-name (string-append name "-" version "-checkout"))))
76 (build-system gnu-build-system)
78 `(#:tests? #f ; No test suite.
79 #:phases (modify-phases %standard-phases
83 (lambda* (#:key outputs #:allow-other-keys)
84 (let* ((out (string-append
85 (assoc-ref outputs "out")
86 "/share/" ,name "-" ,version)))
87 (copy-recursively "." out)))))))
88 (home-page "https://github.com/jimeh/tmux-themepack")
89 (synopsis "Collection of themes for Tmux")
90 (description "A collection of various themes for Tmux.")
92 (non-copyleft "http://www.wtfpl.net/txt/copying/")))))
94 (define-public tmuxifier
101 "https://github.com/jimeh/tmuxifier/archive/v"
103 (file-name (string-append name "-" version ".tar.gz"))
106 "1j9fj6zg0j3sdn7svpybzsqh7876rv81zi437976kj7hxnyjkcz7"))))
107 (build-system gnu-build-system)
110 #:phases (modify-phases %standard-phases
114 (lambda* (#:key outputs #:allow-other-keys)
115 (let* ((out (assoc-ref %outputs "out"))
116 (bindir (string-append out "/bin"))
117 (share (string-append out "/share/" ,name)))
118 (install-file "bin/tmuxifier" bindir)
119 (substitute* (string-append bindir "/tmuxifier")
121 (string-append "TMUXIFIER=" share "\nset -e")))
122 (for-each (lambda (init-script)
123 (install-file init-script (string-append
125 '("init.sh" "init.tcsh" "init.fish"))
126 (for-each (lambda (dir)
127 (copy-recursively dir (string-append
129 '("completion" "lib" "libexec"
131 (home-page "https://github.com/jimeh/tmuxifier")
132 (synopsis "Powerful session, window & pane management for Tmux")
133 (description "Tmuxifier allows you to easily create, edit, and load
134 @code{layout} files, which are simple shell scripts where you use the tmux
135 command and helper commands provided by tmuxifier to manage Tmux sessions and