jump: 0.41.0 -> 0.51.0
This commit is contained in:
parent
9bbb7fb635
commit
fdddc8baed
|
@ -1,30 +1,24 @@
|
||||||
{ buildGoModule, fetchFromGitHub, lib }:
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "jump";
|
pname = "jump";
|
||||||
version = "0.41.0";
|
version = "0.51.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gsamokovarov";
|
owner = "gsamokovarov";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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 = ''
|
postInstall = ''
|
||||||
install -D --mode=444 man/j.1 man/jump.1 -t $man/man/man1/
|
installManPage man/j.1 man/jump.1
|
||||||
|
|
||||||
# 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; {
|
meta = with lib; {
|
||||||
|
@ -36,6 +30,6 @@ buildGoModule rec {
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/gsamokovarov/jump";
|
homepage = "https://github.com/gsamokovarov/jump";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ aaronjheng ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue