about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-11-13 23:04:45 +0200
committerArtturin <Artturin@artturin.com>2022-11-14 15:26:19 +0200
commit56a574567998855b5f46d6107edf64ed3e66fd3d (patch)
treedc88170a37fa5623e69ab8b70e2a9a61f7886568 /pkgs
parent1682b3d09480122da4c69928a9122a7647ccbf69 (diff)
tmux: build with utempter
with utempter tmux will be shown in who

fixes issue 155446

withUtempter argument copied from mosh
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/tmux/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix
index 0602f9d19d83d..73837f0ef644f 100644
--- a/pkgs/tools/misc/tmux/default.nix
+++ b/pkgs/tools/misc/tmux/default.nix
@@ -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;