From bca25d8c24db89fbba19b8f96dfd527e3d789be7 Mon Sep 17 00:00:00 2001 From: Bruno Bigras <24027+bbigras@users.noreply.github.com> Date: Tue, 26 Aug 2025 19:26:14 -0400 Subject: [PATCH] tmuxPlugins.lazy-restore: init at 0.1.1 --- pkgs/misc/tmux-plugins/default.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/pkgs/misc/tmux-plugins/default.nix b/pkgs/misc/tmux-plugins/default.nix index ce5dd347c49c..82c815f171e7 100644 --- a/pkgs/misc/tmux-plugins/default.nix +++ b/pkgs/misc/tmux-plugins/default.nix @@ -440,6 +440,43 @@ in }; }; + lazy-restore = mkTmuxPlugin rec { + pluginName = "lazy-restore"; + rtpFilePath = "tmux-lazy-restore.tmux"; + version = "0.1.1"; + src = fetchFromGitHub { + owner = "bcampolo"; + repo = "tmux-lazy-restore"; + tag = "v${version}"; + hash = "sha256-rI9KhV6CiAHTErOKuTla+xVbpiP8RK9wu6goxCKhKiA="; + }; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + for f in LICENSE README.md; do + rm -rf $target/$f + done + wrapProgram $target/scripts/tmux-session-manager.sh \ + --prefix PATH : ${ + with pkgs; + lib.makeBinPath [ + coreutils + findutils + fzf + gnused + jq + tmux + ] + } + ''; + meta = with lib; { + homepage = "https://github.com/bcampolo/tmux-lazy-restore"; + description = "session manager plugin that allows sessions to be lazily restored in order to save memory and processing power"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ bbigras ]; + }; + }; + logging = mkTmuxPlugin { pluginName = "logging"; version = "unstable-2019-04-19";