tmux: build with utempter

with utempter tmux will be shown in who

fixes issue 155446

withUtempter argument copied from mosh

Artturin 56a57456 1682b3d0

Changed files
+4 -1
pkgs
tools
misc
+4 -1
pkgs/tools/misc/tmux/default.nix
···
, pkg-config
, withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd
, utf8proc
+
, withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter
}:
let
···
ncurses
libevent
] ++ lib.optionals withSystemd [ systemd ]
-
++ lib.optionals stdenv.isDarwin [ utf8proc ];
+
++ lib.optionals stdenv.isDarwin [ utf8proc ]
+
++ lib.optionals withUtempter [ libutempter ];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
] ++ lib.optionals withSystemd [ "--enable-systemd" ]
+
++ lib.optionals withUtempter [ "--enable-utempter" ]
++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ];
enableParallelBuilding = true;