rmpc: install man pages and shell completions

This commit is contained in:
Donovan Glover
2024-08-25 20:14:10 -04:00
parent 4c53299bc3
commit 0af00aa52d
+11
View File
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
cmake,
}:
@@ -20,12 +21,22 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-PieGA8/C7d8Q5rdu7oRdVuCLNhwGp5LZYz/rM4agqng=";
nativeBuildInputs = [
installShellFiles
pkg-config
cmake
];
env.VERGEN_GIT_DESCRIBE = version;
postInstall = ''
installManPage target/man/rmpc.1
installShellCompletion --cmd rmpc \
--bash target/completions/rmpc.bash \
--fish target/completions/rmpc.fish \
--zsh target/completions/_rmpc
'';
meta = {
changelog = "https://github.com/mierak/rmpc/releases/tag/${src.rev}";
description = "TUI music player client for MPD with album art support via kitty image protocol";