thumbs: init at 0.7.1

+38
+23
pkgs/tools/misc/thumbs/default.nix
··· 1 + { lib, rustPlatform, fetchFromGitHub }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "thumbs"; 5 + version = "0.7.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "fcsonline"; 9 + repo = "tmux-thumbs"; 10 + rev = version; 11 + sha256 = "sha256-PH1nscmVhxJFupS7dlbOb+qEwG/Pa/2P6XFIbR/cfaQ="; 12 + }; 13 + 14 + cargoSha256 = "sha256-6htKiXMMyYRFefJzvDnmdx3CJ3XL8zONhGlV2wcbr9g="; 15 + 16 + cargoPatches = [ ./fix.patch ]; 17 + meta = with lib; { 18 + homepage = "https://github.com/fcsonline/tmux-thumbs"; 19 + description = "A lightning fast version copy/pasting like vimium/vimperator"; 20 + license = licenses.mit; 21 + maintainers = with maintainers; [ ghostbuster91 ]; 22 + }; 23 + }
+13
pkgs/tools/misc/thumbs/fix.patch
··· 1 + diff --git a/src/swapper.rs b/src/swapper.rs 2 + index 6cf1e89..bcb0969 100644 3 + --- a/src/swapper.rs 4 + +++ b/src/swapper.rs 5 + @@ -215,7 +215,7 @@ impl<'a> Swapper<'a> { 6 + }; 7 + 8 + let pane_command = format!( 9 + - "tmux capture-pane -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/target/release/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}", 10 + + "tmux capture-pane -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}", 11 + active_pane_id = active_pane_id, 12 + scroll_params = scroll_params, 13 + height = self.active_pane_height.unwrap_or(i32::MAX),
+2
pkgs/top-level/all-packages.nix
··· 1137 1137 1138 1138 tfk8s = callPackage ../tools/misc/tfk8s { }; 1139 1139 1140 + thumbs = callPackage ../tools/misc/thumbs { }; 1141 + 1140 1142 tnat64 = callPackage ../tools/networking/tnat64 { }; 1141 1143 1142 1144 topicctl = callPackage ../tools/misc/topicctl { };