Files
nixpkgs/pkgs/by-name/rm/rmpc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.7 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
cmake,
}:
rustPlatform.buildRustPackage rec {
pname = "rmpc";
version = "0.9.0";
src = fetchFromGitHub {
owner = "mierak";
repo = "rmpc";
rev = "v${version}";
hash = "sha256-6hs0neoQf1h5IORJZp8R3ELLvYBXMr1iqc7ErSsGnUQ=";
};
cargoHash = "sha256-xXH/MRQgT/Je/aOCZ26vdC3PtlosXLIrjbOHtnvf9os=";
checkFlags = [
# Test currently broken, needs to be removed. See https://github.com/mierak/rmpc/issues/254
"--skip=core::scheduler::tests::interleaves_repeated_and_scheduled_jobs"
];
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";
homepage = "https://mierak.github.io/rmpc/";
license = lib.licenses.bsd3;
longDescription = ''
Rusty Music Player Client is a beautiful, modern and configurable terminal-based Music Player
Daemon client. It was inspired by ncmpcpp and aims to provide an alternative with support for
album art through kitty image protocol without any ugly hacks. It also features ranger/lf
inspired browsing of songs and other goodies.
'';
maintainers = with lib.maintainers; [
donovanglover
faukah
];
mainProgram = "rmpc";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}