2019-05-06 16:40:53 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "jump";
|
2021-01-22 14:38:36 +01:00
|
|
|
version = "0.40.0";
|
2019-05-06 16:40:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gsamokovarov";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-22 14:38:36 +01:00
|
|
|
sha256 = "sha256-8Lfta4qDXYVSHG3UI8iUA6vIjBe5OIX7n0LC4OW1qMU=";
|
2019-05-06 16:40:53 +02:00
|
|
|
};
|
|
|
|
|
2021-01-22 14:38:36 +01:00
|
|
|
vendorSha256 = null;
|
2019-05-06 16:40:53 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-05-06 16:40:53 +02:00
|
|
|
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; {
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "Navigate directories faster by learning your habits";
|
2019-05-06 16:40:53 +02:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/gsamokovarov/jump";
|
2019-05-06 16:40:53 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sondr3 ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|