From d75b80889686fca337e49923cd70c979beecd6c2 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Wed, 21 Jan 2026 21:48:06 -0500 Subject: [PATCH 1/2] tmux: modernize, add versionCheckHook Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/tm/tmux/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/tm/tmux/package.nix b/pkgs/by-name/tm/tmux/package.nix index 35a49b04d009..05c323f106dd 100644 --- a/pkgs/by-name/tm/tmux/package.nix +++ b/pkgs/by-name/tm/tmux/package.nix @@ -16,6 +16,8 @@ withUtempter ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isMusl, libutempter, withSixel ? true, + versionCheckHook, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -30,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "tmux"; repo = "tmux"; - rev = finalAttrs.version; + tag = finalAttrs.version; hash = "sha256-VwOyR9YYhA/uyVRJbspNrKkJWJGYFFktwPnnwnIJ97s="; }; @@ -64,6 +66,10 @@ stdenv.mkDerivation (finalAttrs: { echo "${finalAttrs.passthru.terminfo}" >> $out/nix-support/propagated-user-env-packages ''; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "-V"; + doInstallCheck = true; + passthru = { terminfo = runCommand "tmux-terminfo" { nativeBuildInputs = [ ncurses ]; } ( if stdenv.hostPlatform.isDarwin then @@ -81,10 +87,12 @@ stdenv.mkDerivation (finalAttrs: { ln -sv ${ncurses}/share/terminfo/t/{tmux,tmux-256color,tmux-direct} $out/share/terminfo/t '' ); + updateScript = nix-update-script { }; }; meta = { homepage = "https://tmux.github.io/"; + downloadPage = "https://github.com/tmux/tmux"; description = "Terminal multiplexer"; longDescription = '' tmux is intended to be a modern, BSD-licensed alternative to programs such as GNU screen. Major features include: From fea20d1accfb70c6cfd8465b288208184ad433bb Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Wed, 21 Jan 2026 21:48:49 -0500 Subject: [PATCH 2/2] tmux: add ethancedwards8 to maintainers I maintian a pretty popular tmux plugin and would like to get more involved in the NixOS tmux community. Link: https://github.com/dracula/tmux Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/tm/tmux/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/tm/tmux/package.nix b/pkgs/by-name/tm/tmux/package.nix index 05c323f106dd..d3907e4b164e 100644 --- a/pkgs/by-name/tm/tmux/package.nix +++ b/pkgs/by-name/tm/tmux/package.nix @@ -111,6 +111,7 @@ stdenv.mkDerivation (finalAttrs: { platforms = lib.platforms.unix; mainProgram = "tmux"; maintainers = with lib.maintainers; [ + ethancedwards8 fpletz ]; };