diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-12-04 18:02:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 18:02:02 -0300 |
commit | c94cdd0978d707c08ffdfba54e682a8b553263e1 (patch) | |
tree | 979acd71a423e0eb19e205d45c8d41387dc3ab85 | |
parent | 9adcb1e712408ce7ec16441fe15e61e8ed9259c8 (diff) | |
parent | bc5367def1b6a043e4e5a70ad5a5fdf755de93b2 (diff) | |
download | nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar.gz nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar.bz2 nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar.lz nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar.xz nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.tar.zst nixpkgs-c94cdd0978d707c08ffdfba54e682a8b553263e1.zip |
Merge pull request #203911 from fgaz/cplay-ng/init
cplay-ng: init at 5.1.0
-rw-r--r-- | pkgs/applications/audio/cplay-ng/default.nix | 48 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/audio/cplay-ng/default.nix b/pkgs/applications/audio/cplay-ng/default.nix new file mode 100644 index 00000000000..965cb31fde5 --- /dev/null +++ b/pkgs/applications/audio/cplay-ng/default.nix @@ -0,0 +1,48 @@ +{ lib +, python3 +, fetchFromGitHub +, makeWrapper +, mpv +, pulseaudio +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cplay-ng"; + version = "5.1.0"; + + src = fetchFromGitHub { + owner = "xi"; + repo = "cplay-ng"; + rev = version; + hash = "sha256-pmuZ1NgrQKEJLoJEVC9wp5deFWc6DiX5DpnISeOOw4k="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 57fcd1f6c36..5fd85a37e11 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27977,6 +27977,8 @@ with pkgs; cozy-drive = callPackage ../applications/networking/cozy-drive {}; + cplay-ng = callPackage ../applications/audio/cplay-ng { }; + cq-editor = libsForQt5.callPackage ../applications/graphics/cq-editor { python3Packages = python37Packages; }; |