libgen-cli: install completions
This commit is contained in:
parent
0cde5898f4
commit
0700b31ff7
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "libgen-cli";
|
pname = "libgen-cli";
|
||||||
version = "1.0.6";
|
version = "1.0.6";
|
||||||
@ -14,6 +14,15 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
for shell in bash zsh; do
|
||||||
|
$out/bin/libgen-cli completion $shell > libgen-cli.$shell || :
|
||||||
|
installShellCompletion libgen-cli.$shell
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ciehanski/libgen-cli";
|
homepage = "https://github.com/ciehanski/libgen-cli";
|
||||||
description =
|
description =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user