Change:
The mpccli package is missing bashcompletion, even though a bash completion file is in the upstream repo under contrib/mpc- . Steps to reproduce the behavior: the package a terminal and type It tries only to complete with the contents of the current directory mpc should be completed with the mpc subcomands like , , etc. On a regular system, the file would have to be installed under /etc/bashcompletion.d/ . I don't know whats the nix(os) equivalent to this.
First, I am not the maintainer of this package. Nonetheless I will review this. Second, in Nixpkgs we do "almost" the same: we use a special hook that installs those extra files at the . Now I need to sleep; please wait a bit more.

Discussion:
githubId = 38869148; name = "Alex Eyre"; }; <del> algorith = { email = "dries_van_daele@telenet.be"; name = "Dries Van Daele"; }; </del> alibabzo = { email = "alistair.bill@gmail.com"; github = "alibabzo";

type = types.listOf (types.submodule bindingCfg); default = []; example = lib.literalExpression '' <del> [ { keys = ["PLAYPAUSE"];  cmd = "''${pkgs.mpc_cli}/bin/mpc -q toggle"; } ] </del> <ins> [ { keys = ["PLAYPAUSE"];  cmd = "''${pkgs.mpc-cli}/bin/mpc -q toggle"; } ] </ins> ''; description = '' Key bindings for <command>triggerhappy</command>.

}; testScript = '' <del> mpc = "${pkgs.mpc_cli}/bin/mpc --wait" </del> <ins> mpc = "${pkgs.mpc-cli}/bin/mpc --wait" </ins> # Connects to the given server and attempts to play a tune. def play_some_music(server):

, fetchFromGitHub , makeWrapper , rofi <del> , mpc_cli </del> <ins> , mpc-cli </ins> , perl , util-linux , python3Packages

strictDeps = true; <del> installPhase = '' DESTDIR=$out PREFIX=/ make install wrapProgram $out/bin/clerk  --prefix PATH : "${lib.makeBinPath [ rofi mpc_cli perl util-linux libnotify ]}" ''; </del> <ins> installPhase = let binPath = lib.makeBinPath [ libnotify mpc-cli perl rofi util-linux ]; in '' runHook preInstall DESTDIR=$out PREFIX=/ make install wrapProgram $out/bin/clerk --prefix PATH : "${binPath}" runHook postInstall ''; </ins> meta = with lib; { description = "An MPD client built on top of rofi";

{ lib , stdenv , fetchFromGitHub <ins> , installShellFiles , libiconv , libmpdclient </ins> , meson , ninja , pkg-config <del> , libmpdclient </del> , sphinx <del> , libiconv </del> }: stdenv.mkDerivation rec {

version = "0.34"; src = fetchFromGitHub { <del> owner  = "MusicPlayerDaemon"; repo   = "mpc"; rev    = "v${version}"; sha256 = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; </del> <ins> owner = "MusicPlayerDaemon"; repo = pname; rev = "v${version}"; hash = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; </ins> }; <del> buildInputs = [ libmpdclient ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; </del> <ins> buildInputs = [ libmpdclient ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; </ins> <del> nativeBuildInputs = [ meson ninja pkg-config sphinx ]; </del> <ins> 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 ''; </ins> meta = with lib; { <del> description = "A minimalist command line interface to MPD"; </del> homepage = "https://www.musicpd.org/clients/mpc/"; <del> license = licenses.gpl2; maintainers = with maintainers; [ algorith ]; platforms = with platforms; linux ++ darwin; </del> <ins> description = "A minimalist command line interface to MPD"; changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/v${version}/NEWS"; license = licenses.gpl2Plus; maintainers = with maintainers; [ AndersonTorres ]; platforms = with platforms; unix; </ins> }; }

module_init_tools = kmod; # added 2016-04-22 mozart = mozart2-binary; # added 2019-09-23 mozart-binary = mozart2-binary; # added 2019-09-23 <ins> mpc_cli = mpc-cli; # moved from top-level 2022-01-24 </ins> mpd_clientlib = libmpdclient; # added 2021-02-11 mpich2 = mpich;  # added 2018-08-06 msf = metasploit; # added 2018-04-25

mpg321 = callPackage ../applications/audio/mpg321 { }; <del> mpc_cli = callPackage ../applications/audio/mpc { </del> <ins> mpc-cli = callPackage ../applications/audio/mpc { </ins> inherit (python3Packages) sphinx; };