diff options
author | midchildan <git@midchildan.org> | 2022-06-24 10:10:36 +0900 |
---|---|---|
committer | midchildan <git@midchildan.org> | 2022-06-25 01:48:00 +0900 |
commit | 5771e8fcddc1c71703a62abbdbb6536488d6aa32 (patch) | |
tree | 98813ce59ec62eabb97005ea62d6244faa53690e /pkgs/tools/misc/tmux | |
parent | 836c183c60ca7fa14136842773546f68f072bb95 (diff) |
tmux: fix static build
Diffstat (limited to 'pkgs/tools/misc/tmux')
-rw-r--r-- | pkgs/tools/misc/tmux/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index fd4361d27678a..44cbe713f096e 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -6,7 +6,7 @@ , libevent , ncurses , pkg-config -, systemd +, withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd , utf8proc }: @@ -43,13 +43,13 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses libevent - ] ++ lib.optionals stdenv.isLinux [ systemd ] + ] ++ lib.optionals withSystemd [ systemd ] ++ lib.optionals stdenv.isDarwin [ utf8proc ]; configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var" - ] ++ lib.optionals stdenv.isLinux [ "--enable-systemd" ] + ] ++ lib.optionals withSystemd [ "--enable-systemd" ] ++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ]; enableParallelBuilding = true; |