Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpc: 0.34 -> 0.35 #347387

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions pkgs/applications/audio/mpc/default.nix

This file was deleted.

54 changes: 54 additions & 0 deletions pkgs/by-name/mp/mpc/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
lib,
fetchFromGitHub,
installShellFiles,
libiconv,
libmpdclient,
meson,
ninja,
pkg-config,
python3Packages,
stdenv,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "mpc";
version = "0.35";

src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "mpc";
rev = "v${finalAttrs.version}";
hash = "sha256-oVdnj3nsYvOHcIOgoamLamriuWu9lucWUQtxVmXZabs=";
};

buildInputs = [
libmpdclient
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];

nativeBuildInputs = [
installShellFiles
meson
ninja
pkg-config
python3Packages.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 = {
homepage = "https://www.musicpd.org/clients/mpc/";
description = "Minimalist command line interface to MPD";
changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/refs/heads/master/NEWS";
license = lib.licenses.gpl2Plus;
mainProgram = "mpc";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31164,9 +31164,7 @@ with pkgs;
withConplay = false;
};

mpc-cli = callPackage ../applications/audio/mpc {
inherit (python3Packages) sphinx;
};
mpc-cli = mpc;

clerk = callPackage ../applications/audio/clerk { };

Expand Down