After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
result/bin/apply-formatting $NIXPKGS_PATH
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
mpv,
|
|
pulseaudio,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "cplay-ng";
|
|
version = "5.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xi";
|
|
repo = "cplay-ng";
|
|
rev = version;
|
|
hash = "sha256-6mphhoLDkGZ2r+elzLlPl3B8fNz3loqrQB8x8276AHI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
build-system = [
|
|
python3.pkgs.setuptools
|
|
];
|
|
|
|
pyproject = true;
|
|
|
|
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";
|
|
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 = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
};
|
|
}
|