Merge pull request #183241 from marsam/update-libgen-cli

libgen-cli: 1.0.7 -> 1.0.9
This commit is contained in:
Mario Rodas 2022-07-28 10:24:26 -05:00 committed by GitHub
commit 9805dfd9b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,17 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "libgen-cli";
version = "1.0.7";
version = "1.0.9";
src = fetchFromGitHub {
owner = "ciehanski";
repo = pname;
rev = "v${version}";
sha256 = "15nzdwhmgpm36dqx7an5rjl5sw2r4p66qn2y3jzl6fc0y7224ns1";
sha256 = "sha256-Ga9C4h1dcjIdsLJLgZ9s1Fnq4ejI5q0gUtapg/FpLcM=";
};
vendorSha256 = "0smb83mq711b2pby57ijcllccn7y2l10zb4fbf779xibb2g09608";
vendorSha256 = "sha256-uHu0BfF26COL/S/yswdcVJVYwozl8Pl3RXHSctYQi+s=";
doCheck = false;
@ -18,11 +19,13 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
postInstall = ''
for shell in bash zsh; do
$out/bin/libgen-cli completion $shell > libgen-cli.$shell || :
installShellCompletion libgen-cli.$shell
done
installShellCompletion --cmd libgen-cli \
--bash <($out/bin/libgen-cli completion bash) \
--fish <($out/bin/libgen-cli completion fish) \
--zsh <($out/bin/libgen-cli completion zsh)
'';
meta = with lib; {