tmux: fix darwin build (#555604)

This commit is contained in:
zowoq
2026-08-23 05:40:03 +00:00
committed by GitHub

View File

@@ -8,6 +8,7 @@
ncurses,
pkg-config,
runCommand,
jemalloc,
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdLibs,
systemdLibs,
# broken on i686-linux https://github.com/tmux/tmux/issues/4597
@@ -49,6 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
ncurses
libevent
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ jemalloc ]
++ lib.optionals withSystemd [ systemdLibs ]
++ lib.optionals withUtf8proc [ utf8proc ]
++ lib.optionals withUtempter [ libutempter ];
@@ -57,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
"--sysconfdir=/etc"
"--localstatedir=/var"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "--enable-jemalloc" ]
++ lib.optionals withSystemd [ "--enable-systemd" ]
++ lib.optionals withSixel [ "--enable-sixel" ]
++ lib.optionals withUtempter [ "--enable-utempter" ]