jump: 0.41.0 -> 0.51.0

This commit is contained in:
Aaron Jheng 2022-11-10 07:59:58 +00:00
parent 9bbb7fb635
commit fdddc8baed
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,30 +1,24 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
buildGoModule rec {
pname = "jump";
version = "0.41.0";
version = "0.51.0";
src = fetchFromGitHub {
owner = "gsamokovarov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nI4n1WxgdGGP822APBOLZ5lNkjwL1KfP5bKUxfvXdnE=";
sha256 = "sha256-nlCuotEiAX2+xx7T8jWZo2p4LNLhWXDdcU6DxJprgx0=";
};
vendorSha256 = null;
vendorSha256 = "sha256-nMUqZWdq//q/DNthvpKiYLq8f95O0QoItyX5w4vHzSA=";
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
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
installManPage man/j.1 man/jump.1
'';
meta = with lib; {
@ -36,6 +30,6 @@ buildGoModule rec {
'';
homepage = "https://github.com/gsamokovarov/jump";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ aaronjheng ];
};
}