git.iko.soy/typeable/nixpkgs
on master help sign in
tmux module: set TMUX_TMPDIR via environment instead of wrapper
commit5404595b55eeefae69f2952a34dfc70e32523060 authorPeter Hoeg <peter@speartail.com> dateFri 27 May 2016, 15:57 (11 years ago) parente746e1f
2 files changed+6−4
nixos/modules/programs/tmux.nix+6−1 pkgs/tools/misc/tmux/default.nix−3
nixos/modules/programs/tmux.nix+6−1
@@ -156,8 +156,13 @@ in {
156156
157157 config = mkIf cfg.enable {
158158 environment = {
159− systemPackages = [ pkgs.tmux ];
160159 etc."tmux.conf".text = tmuxConf;
160+
161+ systemPackages = [ pkgs.tmux ];
162+
163+ variables = {
164+ TMUX_TMPDIR = ''''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"}'';
165+ };
161166 };
162167 };
163168}
pkgs/tools/misc/tmux/default.nix−3
@@ -34,9 +34,6 @@ stdenv.mkDerivation rec {
3434 postInstall = ''
3535 mkdir -p $out/share/bash-completion/completions
3636 cp -v ${bashCompletion}/completions/tmux $out/share/bash-completion/completions/tmux
37−
38− wrapProgram $out/bin/tmux \
39− --set TMUX_TMPDIR \''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"}
4037 '';
4138
4239 meta = {