tmux: add proposed upstream fix for split-window regression

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 https://github.com/tmux/tmux/pull/3840.
This commit is contained in:
Alois Wohlschlager 2024-02-18 18:46:03 +01:00
parent 5863c27340
commit a7ab107f02
No known key found for this signature in database
GPG key ID: E0F59EA5E5216914

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, bison
, libevent
@ -37,6 +38,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-RX3RZ0Mcyda7C7im1r4QgUxTnp95nfpGgQ2HRxr0s64=";
};
patches = [(fetchpatch {
url = "https://github.com/tmux/tmux/commit/2d1afa0e62a24aa7c53ce4fb6f1e35e29d01a904.diff";
hash = "sha256-mDt5wy570qrUc0clGa3GhZFTKgL0sfnQcWJEJBKAbKs=";
})];
nativeBuildInputs = [
pkg-config
autoreconfHook