Commit 56a57456 authored by Artturin's avatar Artturin
Browse files

tmux: build with utempter

with utempter tmux will be shown in who

fixes issue 155446

withUtempter argument copied from mosh
parent 1682b3d0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
, pkg-config
, withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd
, utf8proc
, withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter
}:

let
@@ -44,12 +45,14 @@ stdenv.mkDerivation rec {
    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;