From ff207b1278ce961eb0f268a2f32e663ea073b800 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 26 May 2026 10:42:17 +0200 Subject: [PATCH 1/2] tmux: adapt updateScript for tmux versioning --- pkgs/by-name/tm/tmux/package.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/tm/tmux/package.nix b/pkgs/by-name/tm/tmux/package.nix index edc21ddf934f..1cd5e56d6ac4 100644 --- a/pkgs/by-name/tm/tmux/package.nix +++ b/pkgs/by-name/tm/tmux/package.nix @@ -18,7 +18,10 @@ libutempter, withSixel ? true, versionCheckHook, - nix-update-script, + common-updater-scripts, + writeShellScript, + curl, + jq, }: stdenv.mkDerivation (finalAttrs: { @@ -99,7 +102,10 @@ stdenv.mkDerivation (finalAttrs: { ln -sv ${ncurses}/share/terminfo/t/{tmux,tmux-256color,tmux-direct} $out/share/terminfo/t '' ); - updateScript = nix-update-script { }; + updateScript = writeShellScript "update-tmux" '' + latest=$(${lib.getExe curl} --silent ''${GITHUB_TOKEN:+--header "Authorization: Bearer $GITHUB_TOKEN"} https://api.github.com/repos/tmux/tmux/releases/latest | ${lib.getExe jq} -r .tag_name) + ${lib.getExe' common-updater-scripts "update-source-version"} tmux "$latest" + ''; }; meta = { From 2b54fe9cd4d048a73ea466767aaa5269f78685e6 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 20 May 2026 18:47:19 +0200 Subject: [PATCH 2/2] =?UTF-8?q?tmux:=203.6a=20=E2=86=92=203.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/by-name/tm/tmux/package.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/tm/tmux/package.nix b/pkgs/by-name/tm/tmux/package.nix index 1cd5e56d6ac4..9f479fa366aa 100644 --- a/pkgs/by-name/tm/tmux/package.nix +++ b/pkgs/by-name/tm/tmux/package.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, autoreconfHook, bison, libevent, @@ -26,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "tmux"; - version = "3.6a"; + version = "3.7"; outputs = [ "out" @@ -37,20 +36,9 @@ stdenv.mkDerivation (finalAttrs: { owner = "tmux"; repo = "tmux"; tag = finalAttrs.version; - hash = "sha256-VwOyR9YYhA/uyVRJbspNrKkJWJGYFFktwPnnwnIJ97s="; + hash = "sha256-dgqI1jZjnluN/F/AjngzcaMy3TgudmkvDT336YlhGZM="; }; - patches = [ - # Fix NULL pointer dereference in control_write() when a control-mode - # client is notified before control_state has been allocated. - # https://github.com/tmux/tmux/issues/4980 - (fetchpatch { - name = "tmux-control-notify-uninitialized.patch"; - url = "https://github.com/tmux/tmux/commit/e5a2a25fafb8ee107c230d8acad694f6b635f8bb.patch"; - hash = "sha256-UPbhMNnH1WJwTH/LVwjVonTqvNhyuniUrYm7iLVkCfg="; - }) - ]; - nativeBuildInputs = [ pkg-config autoreconfHook