at v206 49 lines 1.7 kB view raw
1{ stdenv, fetchurl, ncurses, libevent, pkgconfig }: 2 3stdenv.mkDerivation rec { 4 name = "tmux-${version}"; 5 version = "2.0"; 6 7 src = fetchurl { 8 url = "https://github.com/tmux/tmux/releases/download/${version}/${name}.tar.gz"; 9 sha256 = "0qnkda8kb747vmbldjpb23ksv9pq3s65xhh1ja5rdsmh8r24npvr"; 10 }; 11 12 nativeBuildInputs = [ pkgconfig ]; 13 14 buildInputs = [ ncurses libevent ]; 15 16 configureFlags = [ 17 "--sysconfdir=/etc" 18 "--localstatedir=/var" 19 ]; 20 21 postInstall = '' 22 mkdir -p $out/etc/bash_completion.d 23 cp -v examples/bash_completion_tmux.sh $out/etc/bash_completion.d/tmux 24 ''; 25 26 meta = { 27 homepage = http://tmux.github.io/; 28 description = "Terminal multiplexer"; 29 30 longDescription = 31 '' tmux is intended to be a modern, BSD-licensed alternative to programs such as GNU screen. Major features include: 32 33 * A powerful, consistent, well-documented and easily scriptable command interface. 34 * A window may be split horizontally and vertically into panes. 35 * Panes can be freely moved and resized, or arranged into preset layouts. 36 * Support for UTF-8 and 256-colour terminals. 37 * Copy and paste with multiple buffers. 38 * Interactive menus to select windows, sessions or clients. 39 * Change the current window by searching for text in the target. 40 * Terminal locking, manually or after a timeout. 41 * A clean, easily extended, BSD-licensed codebase, under active development. 42 ''; 43 44 license = stdenv.lib.licenses.bsd3; 45 46 platforms = stdenv.lib.platforms.unix; 47 maintainers = with stdenv.lib.maintainers; [ thammers ]; 48 }; 49}