-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmux: add proposed upstream fix for split-window regression #289789
Conversation
In tmux 3.4, a regression was introduced that breaks the deprecated (but still supported for backwards compatibility) -p option to split-window. Several external tools (for example fzf.kak, fzf-tmux and nnn) break due to this. Add the proposed upstream fix from tmux/tmux#3840.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this way of testing is equivalent/accepted, then yes, this works for me on 1xx86_64-linux
NixOS (the config change/patch was introduced through home-manager).
diff --git a/home-manager/programs/terminal/tmux.nix b/home-manager/programs/terminal/tmux.nix
index aae6d8f..46836cf 100644
--- a/home-manager/programs/terminal/tmux.nix
+++ b/home-manager/programs/terminal/tmux.nix
@@ -53,4 +53,23 @@ in {
'')
];
};
+ nixpkgs.overlays = [
+ (final: prev: {
+ tmux = prev.tmux.overrideAttrs (old: {
+ patches =
+ (old.patches or [])
+ ++ [
+ (
+ # For context, see:
+ # https://github.com/NixOS/nixpkgs/pull/289789/files
+ # TODO: Remove when fixed
+ pkgs.fetchpatch {
+ url = "https://github.com/tmux/tmux/commit/2d1afa0e62a24aa7c53ce4fb6f1e35e29d01a904.diff";
+ hash = "sha256-mDt5wy570qrUc0clGa3GhZFTKgL0sfnQcWJEJBKAbKs=";
+ }
+ )
+ ];
+ });
+ })
+ ];
}
EDIT: Formatting
Refs: NixOS/nixpkgs#289789 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Refs: NixOS/nixpkgs#289789 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Refs: NixOS/nixpkgs#289789 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Refs: NixOS/nixpkgs#289789 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
I can confirm that this solution worked for me as well, resolving the issue. |
Are we certain we wanted to merge this? What mechanism is in place for this not just breaking once the tmux package gets upgraded in nixpkgs next time? We trust in the people performing the upgrade testing the software before pushing PR? |
In tmux 3.4, a regression was introduced that breaks the deprecated (but still supported for backwards compatibility) -p option to split-window. Several external tools (for example fzf.kak, fzf-tmux and nnn) break due to this. Add the proposed upstream fix from tmux/tmux#3840.
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.