summary refs log tree commit diff
path: root/pkgs/tools/misc/tmux
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-11-23 13:23:32 +0100
committerNaïm Favier <n@monade.li>2022-11-23 13:23:32 +0100
commit962c8cba72d074a907f7739fd17f125421cb2112 (patch)
tree4cb9c489021265d9b1a2a37d33e648190634cc08 /pkgs/tools/misc/tmux
parent1406f51025fb054e6a9f95a411652f6cb8b07d64 (diff)
tmux: enable utf8proc everywhere
Currently, tmux does not render emoji from Unicode 15 (e.g. U+1FABF 🪿), because the
`wcwidth` function from glibc does not know about the new characters.
Support was added upstream but not released yet
(https://sourceware.org/git/?p=glibc.git;a=commit;h=7fe6734d28feb18acb3c50b13a5f5a52f66d39cf).
Instead, tmux can use the `wcwidth` function from utf8proc, which has
regular updates so that we don't have to wait 6 months for the new
characters to be supported.
Diffstat (limited to 'pkgs/tools/misc/tmux')
-rw-r--r--pkgs/tools/misc/tmux/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix
index 73837f0ef644f..9ffe21c8cf5e5 100644
--- a/pkgs/tools/misc/tmux/default.nix
+++ b/pkgs/tools/misc/tmux/default.nix
@@ -7,7 +7,7 @@
 , ncurses
 , pkg-config
 , withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd
-, utf8proc
+, withUtf8proc ? true, utf8proc # gets Unicode updates faster than glibc
 , withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter
 }:
 
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
     ncurses
     libevent
   ] ++ lib.optionals withSystemd [ systemd ]
-  ++ lib.optionals stdenv.isDarwin [ utf8proc ]
+  ++ lib.optionals withUtf8proc [ utf8proc ]
   ++ lib.optionals withUtempter [ libutempter ];
 
   configureFlags = [
@@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
     "--localstatedir=/var"
   ] ++ lib.optionals withSystemd [ "--enable-systemd" ]
   ++ lib.optionals withUtempter [ "--enable-utempter" ]
-  ++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ];
+  ++ lib.optionals withUtf8proc [ "--enable-utf8proc" ];
 
   enableParallelBuilding = true;