Merge pull request #183241 from marsam/update-libgen-cli
libgen-cli: 1.0.7 -> 1.0.9
This commit is contained in:
commit
9805dfd9b4
1 changed files with 10 additions and 7 deletions
|
@ -1,16 +1,17 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "libgen-cli";
|
pname = "libgen-cli";
|
||||||
version = "1.0.7";
|
version = "1.0.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ciehanski";
|
owner = "ciehanski";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15nzdwhmgpm36dqx7an5rjl5sw2r4p66qn2y3jzl6fc0y7224ns1";
|
sha256 = "sha256-Ga9C4h1dcjIdsLJLgZ9s1Fnq4ejI5q0gUtapg/FpLcM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "0smb83mq711b2pby57ijcllccn7y2l10zb4fbf779xibb2g09608";
|
vendorSha256 = "sha256-uHu0BfF26COL/S/yswdcVJVYwozl8Pl3RXHSctYQi+s=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -18,11 +19,13 @@ buildGoModule rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for shell in bash zsh; do
|
installShellCompletion --cmd libgen-cli \
|
||||||
$out/bin/libgen-cli completion $shell > libgen-cli.$shell || :
|
--bash <($out/bin/libgen-cli completion bash) \
|
||||||
installShellCompletion libgen-cli.$shell
|
--fish <($out/bin/libgen-cli completion fish) \
|
||||||
done
|
--zsh <($out/bin/libgen-cli completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue