diff options
author | Peter Hoeg <peter@speartail.com> | 2016-03-31 23:22:17 +0800 |
---|---|---|
committer | Peter Hoeg <peter@speartail.com> | 2016-05-18 19:24:03 +0800 |
commit | 60025e35248193b37dc5f6b5f18f8eb33bea2c3c (patch) | |
tree | c7a0941fe948c79e40992456fc9541e3c568eeb9 /pkgs | |
parent | d541e0dc1c05f5514bf30f8039e687adddb45616 (diff) |
tmux module: add additional variables for configuring tmux
Also wraps the tmux binary, so that sockets are stored under /run
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/tmux/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index 7bd79b3088598..4f8a5c05b1820 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, autoreconfHook, ncurses, libevent, pkgconfig }: +{ stdenv, fetchFromGitHub, autoreconfHook, ncurses, libevent, pkgconfig, makeWrapper }: let @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig autoreconfHook ]; - buildInputs = [ ncurses libevent ]; + buildInputs = [ ncurses libevent makeWrapper ]; configureFlags = [ "--sysconfdir=/etc" @@ -32,8 +32,11 @@ stdenv.mkDerivation rec { ]; postInstall = '' - mkdir -p $out/etc/bash_completion.d - cp -v ${bashCompletion}/completions/tmux $out/etc/bash_completion.d/tmux + mkdir -p $out/share/bash-completion/completions + cp -v ${bashCompletion}/completions/tmux $out/share/bash-completion/completions/tmux + + wrapProgram $out/bin/tmux \ + --set TMUX_TMPDIR \''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"} ''; meta = { |