cyme: add shell completion and manpages (#388921)

This commit is contained in:
h7x4
2025-03-11 12:54:00 +01:00
committed by GitHub
+10
View File
@@ -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
];