From 756cd052e7da25fcfa26318c09e7e4a74ff4837c Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Fri, 25 Feb 2022 14:24:11 -0600 Subject: [PATCH] tmux: add utf8proc on Darwin Without utf8proc, tmux on Darwin does not get enough information about character widths. This means that tmux has rendering issues involving multi-byte characters like emoji, ending up with visual artifacts. --- pkgs/tools/misc/tmux/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index 90273068f3e..0d153866419 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -6,6 +6,7 @@ , bison , ncurses , libevent +, utf8proc }: let @@ -49,12 +50,12 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses libevent - ]; + ] ++ lib.optionals stdenv.isDarwin [ utf8proc ]; configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ]; enableParallelBuilding = true;