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
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
mpv,
|
|
pulseaudio,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cplay-ng";
|
|
version = "5.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xi";
|
|
repo = "cplay-ng";
|
|
tag = version;
|
|
hash = "sha256-ob5wX+Q5XKB/fTYG5phLU61imonpk2A/fk5cg/dfr1Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cplay-ng \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
mpv
|
|
pulseaudio
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/xi/cplay-ng";
|
|
description = "Simple curses audio player";
|
|
mainProgram = "cplay-ng";
|
|
longDescription = ''
|
|
cplay is a minimalist music player with a textual user interface written
|
|
in Python. It aims to provide a power-user-friendly interface with simple
|
|
filelist and playlist control.
|
|
|
|
Instead of building an elaborate database of your music library, cplay
|
|
allows you to quickly browse the filesystem and enqueue files,
|
|
directories, and playlists.
|
|
|
|
The original cplay was started by Ulf Betlehem in 1998 and is no longer
|
|
maintained. This is a rewrite that aims to stay true to the original
|
|
design while evolving with a shifting environment.
|
|
'';
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ fgaz ];
|
|
};
|
|
}
|