2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, mpv
|
|
|
|
, pulseaudio
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "cplay-ng";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "5.2.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xi";
|
|
|
|
repo = "cplay-ng";
|
|
|
|
rev = version;
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256-M9WpB59AWSaGMnGrO37Fc+7O6pVBc2BDAv/BGlPmo8E=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cplay-ng \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ mpv pulseaudio ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/xi/cplay-ng";
|
|
|
|
description = "Simple curses audio player";
|
|
|
|
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 = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
};
|
|
|
|
}
|