diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/tmux/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/tmux/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/tools/misc/tmux/default.nix b/nixpkgs/pkgs/tools/misc/tmux/default.nix index 44cbe713f096..a630dbc37411 100644 --- a/nixpkgs/pkgs/tools/misc/tmux/default.nix +++ b/nixpkgs/pkgs/tools/misc/tmux/default.nix @@ -1,13 +1,15 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , autoreconfHook , bison , libevent , ncurses , pkg-config -, withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd -, utf8proc +, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd +, withUtf8proc ? true, utf8proc # gets Unicode updates faster than glibc +, withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter }: let @@ -34,6 +36,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-SygHxTe7N4y7SdzKixPFQvqRRL57Fm8zWYHfTpW+yVY="; }; + patches = [ + ./CVE-2022-47016.patch + ]; + nativeBuildInputs = [ pkg-config autoreconfHook @@ -44,13 +50,15 @@ stdenv.mkDerivation rec { ncurses libevent ] ++ lib.optionals withSystemd [ systemd ] - ++ lib.optionals stdenv.isDarwin [ utf8proc ]; + ++ lib.optionals withUtf8proc [ utf8proc ] + ++ lib.optionals withUtempter [ libutempter ]; configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var" ] ++ lib.optionals withSystemd [ "--enable-systemd" ] - ++ lib.optionals stdenv.isDarwin [ "--enable-utf8proc" ]; + ++ lib.optionals withUtempter [ "--enable-utempter" ] + ++ lib.optionals withUtf8proc [ "--enable-utf8proc" ]; enableParallelBuilding = true; @@ -77,6 +85,6 @@ stdenv.mkDerivation rec { changelog = "https://github.com/tmux/tmux/raw/${version}/CHANGES"; license = lib.licenses.bsd3; platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ thammers fpletz SuperSandro2000 ]; + maintainers = with lib.maintainers; [ thammers fpletz SuperSandro2000 srapenne ]; }; } |