14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
19 owner = "MusicPlayerDaemon";
21 rev = "v${finalAttrs.version}";
22 hash = "sha256-oVdnj3nsYvOHcIOgoamLamriuWu9lucWUQtxVmXZabs=";
27 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
34 python3Packages.sphinx
37 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { NIX_LDFLAGS = "-liconv"; };
40 installShellCompletion --cmd mpc --bash $out/share/doc/mpc/contrib/mpc-completion.bash
44 rm $out/share/doc/mpc/contrib/mpc-completion.bash
48 homepage = "https://www.musicpd.org/clients/mpc/";
49 description = "Minimalist command line interface to MPD";
50 changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/refs/heads/master/NEWS";
51 license = lib.licenses.gpl2Plus;
53 maintainers = with lib.maintainers; [ AndersonTorres ];
54 platforms = lib.platforms.unix;