From fdddc8baedc04adc4611059a18c2d026947db48a Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Thu, 10 Nov 2022 07:59:58 +0000 Subject: [PATCH] jump: 0.41.0 -> 0.51.0 --- pkgs/tools/system/jump/default.nix | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/system/jump/default.nix b/pkgs/tools/system/jump/default.nix index 0061a3d7c88..31b3cae4460 100644 --- a/pkgs/tools/system/jump/default.nix +++ b/pkgs/tools/system/jump/default.nix @@ -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 ]; }; }