Skip to content

Commit 56a5745

Browse files
committed
tmux: build with utempter
with utempter tmux will be shown in who fixes issue 155446 withUtempter argument copied from mosh
1 parent 1682b3d commit 56a5745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/tools/misc/tmux/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
, pkg-config
99
, withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd
1010
, utf8proc
11+
, withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter
1112
}:
1213

1314
let
@@ -44,12 +45,14 @@ stdenv.mkDerivation rec {
4445
ncurses
4546
libevent
4647
] ++ lib.optionals withSystemd [ systemd ]
47-
++ lib.optionals stdenv.isDarwin [ utf8proc ];
48+
++ lib.optionals stdenv.isDarwin [ utf8proc ]
49+
++ lib.optionals withUtempter [ libutempter ];
4850

4951
configureFlags = [
5052
"--sysconfdir=/etc"
5153
"--localstatedir=/var"
5254
] ++ lib.optionals withSystemd [ "--enable-systemd" ]
55+
++ lib.optionals withUtempter [ "--enable-utempter" ]
5356
++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ];
5457

5558
enableParallelBuilding = true;

0 commit comments

Comments
 (0)