diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-01-24 22:58:20 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-01-24 23:24:05 -0300 |
commit | 54d5c634d04f9c17b093b9bdea48f78bbe458f33 (patch) | |
tree | 03a812e0f2c08a5cd004e5022b69c2884b7a529a /pkgs/applications/audio/mpc/default.nix | |
parent | c31a567a83d7a77661014a916830b61658cdf385 (diff) |
mpc_cli: install shell completions
Diffstat (limited to 'pkgs/applications/audio/mpc/default.nix')
-rw-r--r-- | pkgs/applications/audio/mpc/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/applications/audio/mpc/default.nix b/pkgs/applications/audio/mpc/default.nix index 38f417ea2bcde..8fdd05776c97d 100644 --- a/pkgs/applications/audio/mpc/default.nix +++ b/pkgs/applications/audio/mpc/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, installShellFiles , libiconv , libmpdclient , meson @@ -15,7 +16,7 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "MusicPlayerDaemon"; - repo = "mpc"; + repo = pname; rev = "v${version}"; hash = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; }; @@ -26,16 +27,26 @@ stdenv.mkDerivation rec { ++ lib.optionals stdenv.isDarwin [ libiconv ]; nativeBuildInputs = [ + installShellFiles meson ninja pkg-config sphinx ]; + postInstall = '' + installShellCompletion --cmd mpc --bash $out/share/doc/mpc/contrib/mpc-completion.bash + ''; + + postFixup = '' + rm $out/share/doc/mpc/contrib/mpc-completion.bash + ''; + meta = with lib; { homepage = "https://www.musicpd.org/clients/mpc/"; description = "A minimalist command line interface to MPD"; - license = licenses.gpl2; + changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/v${version}/NEWS"; + license = licenses.gpl2Plus; maintainers = with maintainers; [ AndersonTorres ]; platforms = with platforms; unix; }; |