Skip to content

Commit 20eba03

Browse files
authored
cyme: add shell completion and manpages (#388921)
2 parents 0495eb7 + e26cf06 commit 20eba03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/by-name/cy/cyme/package.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
fetchFromGitHub,
44
rustPlatform,
55
pkg-config,
6+
installShellFiles,
67
stdenv,
78
darwin,
89
versionCheckHook,
@@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
2627
nativeBuildInputs =
2728
[
2829
pkg-config
30+
installShellFiles
2931
]
3032
++ lib.optionals stdenv.hostPlatform.isDarwin [
3133
darwin.DarwinTools
@@ -39,6 +41,14 @@ rustPlatform.buildRustPackage rec {
3941
"--skip=test_run"
4042
];
4143

44+
postInstall = ''
45+
installManPage doc/cyme.1
46+
installShellCompletion --cmd cyme \
47+
--bash doc/cyme.bash \
48+
--fish doc/cyme.fish \
49+
--zsh doc/_cyme
50+
'';
51+
4252
nativeInstallCheckInputs = [
4353
versionCheckHook
4454
];

0 commit comments

Comments
 (0)