depot/third_party/nixpkgs/pkgs/tools/system/jump/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

35 lines
983 B
Nix

{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
buildGoModule rec {
pname = "jump";
version = "0.51.0";
src = fetchFromGitHub {
owner = "gsamokovarov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nlCuotEiAX2+xx7T8jWZo2p4LNLhWXDdcU6DxJprgx0=";
};
vendorSha256 = "sha256-nMUqZWdq//q/DNthvpKiYLq8f95O0QoItyX5w4vHzSA=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
postInstall = ''
installManPage man/j.1 man/jump.1
'';
meta = with lib; {
description = "Navigate directories 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;
maintainers = with maintainers; [ aaronjheng ];
};
}