blob: fe0138783d3b135721bb107f9b4cdd7fea07c539 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "jump";
version = "0.30.1";
src = fetchFromGitHub {
owner = "gsamokovarov";
repo = pname;
rev = "v${version}";
sha256 = "0mph3bqfjnw3yf0a6ml3ccmkr1shviwvvq4d04ky4gppfy6z51jy";
};
vendorSha256 = "1500vim2lmkkls758pwhlx3piqbw6ap0nnhdwz9pcxih4s4as2nk";
outputs = [ "out" "man"];
postInstall = ''
install -D --mode=444 man/j.1 man/jump.1 -t $man/man/man1/
# generate completion scripts for jump
export HOME="$NIX_BUILD_TOP"
mkdir -p $out/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
$out/bin/jump shell bash > "$out/share/bash-completion/completions/jump"
$out/bin/jump shell fish > $out/share/fish/vendor_completions.d/jump.fish
$out/bin/jump shell zsh > $out/share/zsh/site-functions/_jump
'';
meta = with lib; {
description = "Jump helps you navigate faster by learning your habits.";
longDescription = ''
Jump integrates with the shell and learns about your
navigational habits by keeping track of the directories you visit. It
strives to give you the best directory for the shortest search term.
'';
homepage = "https://github.com/gsamokovarov/jump";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ sondr3 ];
};
}
|