diff --git a/pkgs/by-name/rm/rmpc/package.nix b/pkgs/by-name/rm/rmpc/package.nix index c2589c50fd4b..0ef3703801d3 100644 --- a/pkgs/by-name/rm/rmpc/package.nix +++ b/pkgs/by-name/rm/rmpc/package.nix @@ -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";