git.iko.soy/typeable/nixpkgs
on master help sign in
tmux module: set TMUX_TMPDIR via environment instead of wrapper
5404595Peter Hoeg
nixos/modules/programs/tmux.nix+6−1
@@ -156,8 +156,13 @@ in {
156
156
157 config = mkIf cfg.enable {
157 config = mkIf cfg.enable {
158 environment = {
158 environment = {
159− systemPackages = [ pkgs.tmux ];
160 etc."tmux.conf".text = tmuxConf;
159 etc."tmux.conf".text = tmuxConf;
160+
161+ systemPackages = [ pkgs.tmux ];
162+
163+ variables = {
164+ TMUX_TMPDIR = ''''${XDG_RUNTIME_DIR:-"/run/user/\$(id -u)"}'';
165+ };
161 };
166 };
162 };
167 };
163}
168}
pkgs/tools/misc/tmux/default.nix−3
@@ -34,9 +34,6 @@ stdenv.mkDerivation rec {
34 postInstall = ''
34 postInstall = ''
35 mkdir -p $out/share/bash-completion/completions
35 mkdir -p $out/share/bash-completion/completions
36 cp -v ${bashCompletion}/completions/tmux $out/share/bash-completion/completions/tmux
36 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)"}
40 '';
37 '';
41
38
42 meta = {
39 meta = {