tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
thumbs: init at 0.7.1
ghostbuster91
3 years ago
3dc0287d
e46d0c5f
+38
3 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
thumbs
default.nix
fix.patch
top-level
all-packages.nix
+23
pkgs/tools/misc/thumbs/default.nix
···
1
1
+
{ lib, rustPlatform, fetchFromGitHub }:
2
2
+
3
3
+
rustPlatform.buildRustPackage rec {
4
4
+
pname = "thumbs";
5
5
+
version = "0.7.1";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "fcsonline";
9
9
+
repo = "tmux-thumbs";
10
10
+
rev = version;
11
11
+
sha256 = "sha256-PH1nscmVhxJFupS7dlbOb+qEwG/Pa/2P6XFIbR/cfaQ=";
12
12
+
};
13
13
+
14
14
+
cargoSha256 = "sha256-6htKiXMMyYRFefJzvDnmdx3CJ3XL8zONhGlV2wcbr9g=";
15
15
+
16
16
+
cargoPatches = [ ./fix.patch ];
17
17
+
meta = with lib; {
18
18
+
homepage = "https://github.com/fcsonline/tmux-thumbs";
19
19
+
description = "A lightning fast version copy/pasting like vimium/vimperator";
20
20
+
license = licenses.mit;
21
21
+
maintainers = with maintainers; [ ghostbuster91 ];
22
22
+
};
23
23
+
}
+13
pkgs/tools/misc/thumbs/fix.patch
···
1
1
+
diff --git a/src/swapper.rs b/src/swapper.rs
2
2
+
index 6cf1e89..bcb0969 100644
3
3
+
--- a/src/swapper.rs
4
4
+
+++ b/src/swapper.rs
5
5
+
@@ -215,7 +215,7 @@ impl<'a> Swapper<'a> {
6
6
+
};
7
7
+
8
8
+
let pane_command = format!(
9
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
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
11
+
active_pane_id = active_pane_id,
12
12
+
scroll_params = scroll_params,
13
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
1140
+
thumbs = callPackage ../tools/misc/thumbs { };
1141
1141
+
1140
1142
tnat64 = callPackage ../tools/networking/tnat64 { };
1141
1143
1142
1144
topicctl = callPackage ../tools/misc/topicctl { };