rmpc: install man pages and shell completions
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user