cyme: add shell completion and manpages (#388921)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
darwin,
|
||||
versionCheckHook,
|
||||
@@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
|
||||
nativeBuildInputs =
|
||||
[
|
||||
pkg-config
|
||||
installShellFiles
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.DarwinTools
|
||||
@@ -39,6 +41,14 @@ rustPlatform.buildRustPackage rec {
|
||||
"--skip=test_run"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installManPage doc/cyme.1
|
||||
installShellCompletion --cmd cyme \
|
||||
--bash doc/cyme.bash \
|
||||
--fish doc/cyme.fish \
|
||||
--zsh doc/_cyme
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user