From 0af00aa52d95183014ccaff619fa06eeb9601f83 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 11 Aug 2024 20:19:16 -0400 Subject: [PATCH] rmpc: install man pages and shell completions --- pkgs/by-name/rm/rmpc/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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";