git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15745 from peterhoeg/tmux-env

tmux module: set TMUX_TMPDIR via environment instead of wrapper

commita487cacef448e3cb2b3de7eed0c1e927e301700b authorJoachim Fasting <joachifm@users.noreply.github.com> dateFri 27 May 2016, 13:23 (11 years ago) parente68878a5404595
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 = {