nixpkgs/pkgs/tools/system/jump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
983 B
Nix
Raw Normal View History

2022-11-10 07:59:58 +00:00
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
2019-05-06 14:40:53 +00:00
buildGoModule rec {
pname = "jump";
2022-11-10 07:59:58 +00:00
version = "0.51.0";
2019-05-06 14:40:53 +00:00
src = fetchFromGitHub {
owner = "gsamokovarov";
repo = pname;
rev = "v${version}";
2022-11-10 07:59:58 +00:00
sha256 = "sha256-nlCuotEiAX2+xx7T8jWZo2p4LNLhWXDdcU6DxJprgx0=";
2019-05-06 14:40:53 +00:00
};
2022-11-10 07:59:58 +00:00
vendorSha256 = "sha256-nMUqZWdq//q/DNthvpKiYLq8f95O0QoItyX5w4vHzSA=";
2019-05-06 14:40:53 +00:00
2022-11-10 07:59:58 +00:00
nativeBuildInputs = [ installShellFiles ];
2022-11-10 07:59:58 +00:00
ldflags = [ "-s" "-w" ];
2019-05-06 14:40:53 +00:00
2022-11-10 07:59:58 +00:00
postInstall = ''
installManPage man/j.1 man/jump.1
2019-05-06 14:40:53 +00:00
'';
meta = with lib; {
description = "Navigate directories faster by learning your habits";
2019-05-06 14:40:53 +00: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.
'';
homepage = "https://github.com/gsamokovarov/jump";
2019-05-06 14:40:53 +00:00
license = licenses.mit;
2022-11-10 07:59:58 +00:00
maintainers = with maintainers; [ aaronjheng ];
2019-05-06 14:40:53 +00:00
};
}